04.08.2014, 09:52
Be more specific.
EDIT:
Add the 'else' to the tutorial above:
EDIT:
Add the 'else' to the tutorial above:
pawn Код:
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, "Tatoo Shop has been robbed recently"); // sending error message
}
else
{
SendClientMessageToAll(COLOR_RED, "The tattoo shop is being robbed!");
}
ROBBING_TATOO[playerid] = 60; // setting the robbery timer
tatoorobbedrecently =180; // Time the players needs to wait for starting an another robbery in the same place
}
return 1;
}