01.08.2011, 20:50
How? And I have another question.
I have this code:
How I can make it to really wait 1 minute until the turf color changes?
I have this code:
Код:
command(ruturf, playerid, params[]) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] == Allied) { if(PlayerToPoint(20,playerid,2459.1743,115.5314,26.4794)) { GangZoneFlashForAll(Russia, White); SendClientMessage(playerid,Gold,"You have to wait 1 minute untill the turf will be yours"); SendClientMessageToAllAxis("The Germany Forces are trying to take over your turf. Head over your base immediately and protect it."); SendClientMessageToAllAxis("You have 1 minute until they will have full control over your turf."); GameTextForPlayer(playerid,"~w~60 Seconds Left",10000,5); GameTextForPlayer(playerid,"~w~50 Seconds Left",10000,5); GameTextForPlayer(playerid,"~w~40 Seconds Left",10000,5); GameTextForPlayer(playerid,"~w~30 Seconds Left",10000,5); GameTextForPlayer(playerid,"~w~20 Seconds Left",10000,5); GameTextForPlayer(playerid,"~w~10 Seconds Left",10000,5); GameTextForPlayer(playerid,"~w~0 Seconds Left",10000,5); GangZoneStopFlashForAll(Russia); GangZoneShowForAll(Russia,Green); SendClientMessage(playerid,Gold,"The turf has been passed to the Germany Forces"); SendClientMessageToAllAllies("You have successfuly captured the enemy's turf."); } else { SendClientMessage(playerid,Admin,"You are not close enough to the Russian base."); } } else { SendClientMessage(playerid,Admin,"You can't take your own turf."); } } return 1; }