04.12.2007, 19:22
Код:
if(strcmp(cmdtext, "/rob", true) == 0) { new PlayerInterior; PlayerInterior = GetPlayerInterior(playerid); if(PlayerInterior(playerid) == 1 || PlayerInterior(playerid) == 4 || PlayerInterior(playerid) == 6 || PlayerInterior(playerid) == 7 || PlayerInterior(playerid) == 17 || PlayerInterior(playerid) == 10 || PlayerInterior(playerid) == 18 || PlayerInterior(playerid) == 16 || PlayerInterior(playerid) == 4 || PlayerInterior(playerid) == 6) { 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; }