15.08.2014, 17:06
pawn Код:
CMD:robpizza(playerid, params[])
{
new time[30];
if(!IsPlayerInDynamicCP(playerid, CP_pizza)) return SendClientMessage(playerid, COLOR_RED,"You are not in ....");
{
if(pizzarobbedrecently >=1) //checking if tatoo shop has been robbed recently
{
SendClientMessage(playerid, COLOR_RED, "Well Stacked Pizza has been robbed recently"); // sending error message
}
ROBBING_PIZZA[playerid] = 60; // setting the robbery timer
pizzarobbedrecently =180; // Time the players needs to wait for starting an another robbery in the same place
format(time,sizeof(time),"Robbery Time: %d",ROBBING_PIZZA[playerid]);
GameTextForPlayer(playerid,time,1000,5);
}
return 1;
}