12.02.2015, 23:26
i want add to this command if player 10 wanted stars cant /rob
PHP код:
CMD:rob(playerid, params[])
{
#pragma unused params // we dont need the params
if(IsPlayerInDynamicCP(playerid, CP_tatoo)) // Checking if player is in the checkpoint
{
if(tatoorobbedrecently >=1) //checking if tatoo shop has been robbed recently
{
SendClientMessage(playerid, COLOR_RED, "The shop has been robbed recenty. Please wait"); // sending error message
return 1;
}
ROBBING_TATOO[playerid] = 5; // setting the robbery timer
tatoorobbedrecently =20; // Time the players needs to wait for starting an another robbery in the same place
}
else {
SendClientMessage(playerid, COLOR_RED, "ERROR:You need to be near shop!"); // Sends a SCM Your not on a Checkpoint.
}
return 1;
}