28.06.2009, 09:44
how can i add a timer off 5 min on this cmd
so you can only use it in 5 minutes
so you can only use it in 5 minutes
pawn Код:
if(strcmp(cmd, "/hackpolice", true) == 0 && IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 2290.2595,2430.9697,10.8203) && PlayerInfo[playerid][pRank] >= -1 && IsPlayerConnected(playerid))
{
{
GivePlayerMoney(playerid,5000);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s Has Hacked The police",sendername);
SendClientMyessageToAll(COLOR_RED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "YOU ARE NOT A HAXOR");
}
return 1;
}