04.12.2007, 19:02
lol
and if(GetPlayerArea(playerid.....))
or something like that could be good because it give more shops who have the same interiorid
Код:
if(strcmp(cmdtext, "/Rob", true) == 0)
{
if(GetPlayerInterior(playerid) == INTERIORID)
{
GivePlayerMoney(playerid,1000);
SetPlayerWantedLevel(playerid,6);
SetPlayerColor(playerid,AZUL);
SendClientMessage(playerid, ROJO, "You did a rob!");
return 1;
} else {
SendClientMessage(playerid,GRIS,"'You must be in a shop to commit a robbery!");
return 1;
}
return 1;
}
or something like that could be good because it give more shops who have the same interiorid

