12.02.2015, 16:01
tatoorobbedrecently =30 is not work
i can rob just 1 times !!
https://sampforum.blast.hk/showthread.php?tid=505857
i can rob just 1 times !!
https://sampforum.blast.hk/showthread.php?tid=505857
PHP код:
CMD:robthis(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 =30; // 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 the Shop"); // Sends a SCM Your not on a Checkpoint.
}
return 1;
}