- | Afiseaza codul
#include <amxmodx> #include <engine> #include <amxmisc> #include <fakemeta_util> new g_type, g_enabled, g_recieved, bool:g_showrecieved, g_hudmsg1, g_hudmsg2 public plugin_init() { register_plugin("Cam & ABD", "Dr.RuLs.Ro", "AmxModx") register_event("Damage", "on_damage", "b", "2!0", "3=0", "4!0") register_event("HLTV", "on_new_round", "a", "1=0", "2=0") g_type = register_cvar("amx_bulletdamage","1") g_recieved = register_cvar("amx_bulletdamage_recieved","1") g_hudmsg1 = CreateHudSyncObj() g_hudmsg2 = CreateHudSyncObj() register_menucmd(register_menuid("Choose Camera View"), 1023, "setview") register_clcmd("say /camera", "chooseview") register_clcmd("say_team /camera", "chooseview") register_clcmd("say /cam", "chooseview") register_clcmd("say_team /cam", "chooseview") } public plugin_modules() { require_module("engine") } public plugin_precache() { precache_model("models/rpgrocket.mdl") } public chooseview(id) { new menu[192] new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3 format(menu, 191, "Choose Camera View^n^n1. 3rd Person View^n2. Upside View^n3. Normall View^n^n0. Exit") show_menu(id, keys, menu) return PLUGIN_CONTINUE } public setview(id, key, menu) { if(key == 0) { set_view(id, CAMERA_3RDPERSON) return PLUGIN_HANDLED } if(key == 1) { set_view(id, CAMERA_TOPDOWN) return PLUGIN_HANDLED } if(key == 2) { set_view(id, CAMERA_NONE) return PLUGIN_HANDLED } else { return PLUGIN_HANDLED } return PLUGIN_HANDLED } public on_new_round() { g_enabled = get_pcvar_num(g_type) if(get_pcvar_num(g_recieved)) g_showrecieved = true } public on_damage(id) { if(g_enabled) { static attacker; attacker = get_user_attacker(id) static damage; damage = read_data(2) if(g_showrecieved) { set_hudmessage(255, 0, 0, 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1) ShowSyncHudMsg(id, g_hudmsg2, "%i^n", damage) } if(is_user_connected(attacker)) { switch(g_enabled) { case 1: { set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1) ShowSyncHudMsg(attacker, g_hudmsg1, "%i^n", damage) } case 2: { if(fm_is_ent_visible(attacker,id)) { set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1) ShowSyncHudMsg(attacker, g_hudmsg1, "%i^n", damage) } } } } } }
cam + bullet damage
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
Forum rules
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
- anaconda cs
- Membru, skill +3
- Posts: 1045
- Joined: 13 Nov 2012, 06:39
- Detinator Steam: Da
- Detinator server CS: Dr.InDungi.Ro
- SteamID: anaconda_indungi
- Location: Iasi
- Has thanked: 49 times
- Been thanked: 45 times
- Contact:
salut, am imbinat si eu aceste 2 plugine.. si imi da erori in ftp -> http://s9.postimg.org/z67hjqdgu/2131.jpg
ce as putea sa ii fac? (de compilat se compileaza fara erori)
- Truth*
- Scripter eXtreamCS
- Posts: 766
- Joined: 11 Oct 2013, 11:08
- Detinator Steam: Da
- SteamID: Ezeru
- Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3 - Fond eXtream: 0
- Location: Sibiu
- Has thanked: 44 times
- Been thanked: 122 times
Adauga debug dupa pluginul respectiv in plugin.ini
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
- anaconda cs
- Membru, skill +3
- Posts: 1045
- Joined: 13 Nov 2012, 06:39
- Detinator Steam: Da
- Detinator server CS: Dr.InDungi.Ro
- SteamID: anaconda_indungi
- Location: Iasi
- Has thanked: 49 times
- Been thanked: 45 times
- Contact:
- Rap^
- Membru, skill +2
- Posts: 621
- Joined: 01 Oct 2011, 00:25
- Detinator Steam: Da
- Reputatie: Fost Scripter eXtreamCS
Fost Super moderator - Location: Bucuresti
- Has thanked: 16 times
- Been thanked: 156 times
Imagination is more important than knowledge.
Knowledge is limited - Imagination encircles the world.
Knowledge is limited - Imagination encircles the world.
- anaconda cs
- Membru, skill +3
- Posts: 1045
- Joined: 13 Nov 2012, 06:39
- Detinator Steam: Da
- Detinator server CS: Dr.InDungi.Ro
- SteamID: anaconda_indungi
- Location: Iasi
- Has thanked: 49 times
- Been thanked: 45 times
- Contact:
Code: Select all
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Modified for www.freakz.ro
3.sma(1) : error 010: invalid function or declaration
amx/include/engine.inc(16) : error 017: undefined symbol "AMXX_VERSION_NUM"
2 Errors.
Compile failed!
- Gabriel963
- Fost moderator
- Posts: 1658
- Joined: 03 Feb 2013, 13:03
- Detinator Steam: Da
- CS Status: Retried
- Reputatie: Membru Club eXtreamCS (1 luna)
Fost Moderator - Location: Bucharest, Romania.
- Has thanked: 20 times
- Been thanked: 85 times