09.02.2012, 03:26
Well I just want to add timer to this.
Timer 10 seconds
When expires it will give the player 1 000.
Here's the code:
Timer 10 seconds
When expires it will give the player 1 000.
Here's the code:
PHP код:
if (strcmp("/caprus", cmdtext, true) == 0)
{
if(GetPlayerTeam(playerid) < 1) return SendClientMessage(playerid, COLOR_RED, "<!>You must be USA to use this command!");
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1348.0179,493.8135,18.2278)) return SendClientMessage(playerid, COLOR_RED, "<!>You are not in range!");
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "<!>Stand here ten seconds and you will capture the base!");
return 1;
}
}
}