30.07.2014, 01:46
u need just a return if statement
pawn Код:
cmd(robstore, playerid, params[])
{
IsPlayerInDynamicCP(playerid,Checkpoint[9])
{
new string[120];
SendClientMessage(playerid, COLOR_RED, "You have started a robbery in LS 69 Cent Store!.");
format(string, 120, "[DISPATCH] %s Has started a robbery at Los Santos 69 Cent Store in idlewood!",PlayerName(playerid));
SendCopMessage(string);
RadioInfo[playerid][pCopRadio] = 1;
RobbingInfo[playerid][pRobbing69cent] = 30;
RobbingInfo[playerid][pRobbed69cent] = 50;
return 1;
}
return SendClientMessage(playerid,-1,"* You are not in a local store!");
}