16.06.2015, 03:51
Try this:
Код:
COMMAND:robstore(playerid, params[]) { if(!playerData[playerid][playerAlreadyLogin]) return 1; switch(GetPlayerWeapon(playerid)) { case WEAPON_BAT, WEAPON_DEAGLE, WEAPON_KNIFE, WEAPON_KATANA, WEAPON_CHAINSAW: return startRobbery(playerid); default: return SendClientMessage(playerid, -1, "You sould use Bat, Deagle, Knife, Katana or Chainsaw to do the robbery."); } return 1; }