22.07.2010, 16:39
Quote:
Try this :
Код:
new pvptimer; Код:
dcmd_pvp(playerid, params[]) { #pragma unused params new Pvp = GetPVarInt(playerid, "Pvp"); if(Pvp == 0) { KillTimer(pvptimer); SetPVarInt(playerid, "Pvp", 1); SendClientMessage(playerid, colorPVP, "PVP Bekapcsolva!"); } if(Pvp == 1) { SendClientMessage(playerid, colorPVP, "Vбrnod kell 5 percet hogy kikapcsoljon a PVP!"); pvptimer = SetTimerEx("PvpOff", 300000, 0, "i", playerid); } return 1; } Код:
forward PvpTimer(playerid); public PvpTimer(playerid) { SetPVarInt(playerid, "Pvp", 0); SendClientMessage(playerid, colorPVP, "PVP Kikapcsolva!"); return 1; } |