10.04.2011, 15:28
I am working for on a PTP server! But i got an problem. When the round ends the begins a new round but then if i use an admin command the server stops working! I use Ladmin V4_2.
Here is the code:
Thanks Admigo
Here is the code:
Код:
forward EndRound(playerid); public EndRound(playerid) { if(TimeLeft != 0) { TimeLeft--; format(TextdrawString, 128, "~y~The president will be safe in %d seconds!", TimeLeft); TextDrawHideForAll(Textdraw); TextDrawSetString(Textdraw, TextdrawString); TextDrawShowForAll(Textdraw); } else { SendRconCommand("changemode PTP2"); } return 1; }