[ZP] Plugin
Posted: 2011 Dec 07 17:54
Hello,
I have a problem with a plugin. It's a auto slay nem/surv plugin, now my problem..
How can i do that if a player become nemesis or survivor that the round counter reset to 0?
I hope anyone can help me!
Thanks!
Script of the plugin:
I have a problem with a plugin. It's a auto slay nem/surv plugin, now my problem..
How can i do that if a player become nemesis or survivor that the round counter reset to 0?
I hope anyone can help me!
Thanks!

Script of the plugin:
Code: Select all
/* Plugin generated by AMXX-Studio */ #include <amxmodx>#include <cstrike>#include <fakemeta>#include <zombieplague> new i, round; public plugin_init() { register_plugin("[ZP] Auto Slay", "0.1", "Torge") round = register_cvar("zp_rounds", "4") // After 4 round can make nemesis/survivor register_concmd("zp_rounds", "zp_rounds") // Console command} public zp_rounds(){ if (i < get_pcvar_num(round)) { client_print(0, print_console, "[ZP] Rounds after last nemesis/survivor: %i.", i) }else client_print(0, print_console, "[ZP] Rounds after last nemesis/survivor: %i. You CAN make nemesis or survivor NEXT ROUND!", i)} public zp_round_started(gamemode, id){ if (gamemode == MODE_SURVIVOR) { if (i < get_pcvar_num(round)) { i=0; static name[32] get_user_name(id, name, 32) client_print(0, print_chat, "%s has been slayed for being made survivor too early", name) user_kill(id) } } if (gamemode == MODE_NEMESIS) { if (i < get_pcvar_num(round)) { i=0; static name[32] get_user_name(id, name, 32) client_print(0, print_chat, "%s has been slayed for being made nemesis too early", name) user_kill(id) } } if(gamemode == MODE_INFECTION) {i++ } if(gamemode == MODE_SWARM) {i++ } if(gamemode == MODE_PLAGUE) {i++ } if(gamemode == MODE_MULTI) {i++ } }