- pluginu | Afiseaza codul
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fakemeta> #include <fun> #include <hamsandwich> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "end." #define TAG "LCS-RANDOM" #define MAX_PLAYERS 32 new bool:next_power[MAX_PLAYERS] new bool:using_power[MAX_PLAYERS] new g_MsgSync public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_Spawn, "player", "Event_Playerspawn", 1) register_forward(FM_PlayerPreThink, "player_prethink") register_event("DeathMsg", "Event_Deathmsg", "a") g_MsgSync = CreateHudSyncObj() } public Event_Playerspawn(const id) { if(!is_user_connected(id) || !is_user_alive(id)) return PLUGIN_HANDLED if(cs_get_user_team(id) == CS_TEAM_CT) { if(next_power[id]) { next_power[id] = false using_power[id] = true set_task(3.0, "fucking_power", id) } else { set_task(3.0, "reset_power", id) next_power[id] = false using_power[id] = false } } return PLUGIN_HANDLED } public player_prethink(id) { if(!is_user_connected(id) || !is_user_alive(id)) return; if(using_power[id]) { set_pev(id, pev_maxspeed, 300.0) } } public Event_Deathmsg() { new attacker = read_data(1) new victim = read_data(2) new AttackerName[32] new VictimName[32] get_user_name(attacker, AttackerName, 31) get_user_name(victim, VictimName,31) if(is_user_bot(attacker) || is_user_bot(victim)) return PLUGIN_HANDLED if(cs_get_user_team(attacker) == CS_TEAM_CT && cs_get_user_team(victim) == CS_TEAM_T) { //culoare_scris(0, ".v[.e%s.v].e %s.g il omoara pe.e %s.g si devine.v Politist.e.", TAG, AttackerName, VictimName) set_hudmessage(212, 255, 42, 0.02, 0.57, 0, 6.0, 5.0) ShowSyncHudMsg(0, g_MsgSync, "A devenit politist %s pentru ca l-a omorat pe %s", AttackerName, VictimName) //show_hudmessage(0, "A devenit politist %s pentru ca l-a omorat pe %s", AttackerName, VictimName) cs_set_user_money(attacker, cs_get_user_money(attacker) + 700) next_power[attacker] = true } if(using_power[victim]) { using_power[victim] = false } return PLUGIN_HANDLED } public fucking_power(id) { new szName[33] get_user_name(id, szName ,31) set_user_health(id, 300) //culoare_scris(0, ".v[.e%s.v].e %s.g este.v Politist.e. Bonus.v +300 viata.e , .v+200 armura.e , .v+300 viteza.e , .v+ GLOW", TAG, szName) set_hudmessage(212, 255, 42, 0.02, 0.57, 0, 6.0, 12.0) ShowSyncHudMsg(0, g_MsgSync, "%s Este Politist!!! El primeste 300 HP, 300 viteza si glow", szName) //show_hudmessage(0, "%s Este Politist!!! El primeste 300 HP, 300 viteza si glow", szName) set_user_rendering(id, kRenderFxGlowShell, 255, 140, 0, kRenderNormal, 20) } public reset_power(id) { set_user_health(id, 100) } public client_putinserver(id) { next_power[id] = false using_power[id] = false } public client_disconnect(id) { remove_task(id) next_power[id] = false using_power[id] = false } /* stock culoare_scris(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, ".v", "^4") replace_all(msg, 190, ".g", "^1") replace_all(msg, 190, ".e", "^3") if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players)) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players) write_byte(players); write_string(msg); message_end(); } } } } */
Errori la un plugin
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 .
-
- Membru, skill +1
- Posts: 278
- Joined: 12 May 2013, 10:15
- Detinator Steam: Nu
- CS Status: dr.legendcs.com
- Detinator server CS: dr.legendcs.com
- SteamID: dr.legendcs.com
- Has thanked: 77 times
- Been thanked: 26 times
- Contact:
Am si eu un plugin numit random si are niste bugurii cred ca imi apare in consola serverului astfel de errori cred eu
- pluginu | Afiseaza codul
-
- Membru, skill +1
- Posts: 278
- Joined: 12 May 2013, 10:15
- Detinator Steam: Nu
- CS Status: dr.legendcs.com
- Detinator server CS: dr.legendcs.com
- SteamID: dr.legendcs.com
- Has thanked: 77 times
- Been thanked: 26 times
- Contact:
Altfel nu se poate repara :-?lucylucy wrote:punein fataCode: Select all
debug
EDIT : asa am pus
Code: Select all
random.amxx debug
Acuma astept sa se schimbe mapa si iti zic daca a mers .
- alkaline
- Fost moderator
- Posts: 734
- Joined: 18 Jul 2012, 09:42
- Detinator Steam: Da
- Reputatie: Fost Moderator ajutator
Nume anterior: lucylucy - Fond eXtream: 0
- Location: Caras-Severin
- Has thanked: 5 times
- Been thanked: 296 times
kosmo1994 wrote:Altfel nu se poate repara :-?lucylucy wrote:punein fataCode: Select all
debug
EDIT : asa am pusE bine ?Code: Select all
random.amxx debug
Acuma astept sa se schimbe mapa si iti zic daca a mers .
da asa
-
- Membru eXtream
- Posts: 3193
- Joined: 30 Aug 2012, 22:16
- Detinator Steam: Da
- CS Status: Fost scripter
- Detinator server CS: Nu
- SteamID: -
- Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff - Location: Bucuresti
- Has thanked: 342 times
- Been thanked: 571 times
- Contact:
-
- Membru eXtream
- Posts: 2127
- Joined: 16 Jan 2013, 12:55
- Detinator Steam: Da
- CS Status: Utilizator Serios
- SteamID: Utilizator Serios
- Reputatie: Restrictie moderator
Nume anterior: RzV24
Utilizator neserios (tepar) - Has thanked: 60 times
- Been thanked: 250 times
-
- Membru eXtream
- Posts: 3193
- Joined: 30 Aug 2012, 22:16
- Detinator Steam: Da
- CS Status: Fost scripter
- Detinator server CS: Nu
- SteamID: -
- Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff - Location: Bucuresti
- Has thanked: 342 times
- Been thanked: 571 times
- Contact:
@ RzV24, la DeathMsg nu se pune ( id ). [ index ]public Event_Deathmsg(id)
Retras
-
- Membru eXtream
- Posts: 2127
- Joined: 16 Jan 2013, 12:55
- Detinator Steam: Da
- CS Status: Utilizator Serios
- SteamID: Utilizator Serios
- Reputatie: Restrictie moderator
Nume anterior: RzV24
Utilizator neserios (tepar) - Has thanked: 60 times
- Been thanked: 250 times
-ModeR- wrote:@ RzV24, la DeathMsg nu se pune ( id ). [ index ]public Event_Deathmsg(id)
Noted :)>- !