[ZP] Plugin

Šiame forume vartotojai gali prašyti jiems reikiamo plugino.
Forum rules
Šiame forume galite siūlyti idėjas ar prašyti jums reikalingų pluginų. Jei kas nors pradės jį kurti, tai pasirašys Jūsų sukurtoje temoje. Niekada nepykite, jei niekas neatsako į Jūsų prašymą. Gal tai tiesiog per sudėtinga, arba reikalauja per daug darbo.
Post Reply
excellent
Parašęs kelias žinutes
Posts: 5
Joined: 2011 Dec 03 18:29

[ZP] Plugin

Post by excellent »

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:

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++ } }  

Fly3r
Jau po truputį tampa savu
Posts: 138
Joined: 2011 Nov 06 11:35

Re: [ZP] Plugin

Post by Fly3r »

Here, try.

P.S. Where are you from?
Attachments
zp_auto_slay.sma
(1.51 KiB) Downloaded 726 times

excellent
Parašęs kelias žinutes
Posts: 5
Joined: 2011 Dec 03 18:29

Re: [ZP] Plugin

Post by excellent »

I'm from England, but i live in germany :)

Thx for the plugin :)

btw: can you change that if player become auto nemesis/survivor that he doesnt get slay? ^^

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests