16.06.2015, 08:34
Or that...
PHP код:
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);
}
return SendClientMessage(playerid, -1, "You sould use Bat, Deagle, Knife, Katana or Chainsaw to do the robbery.");
}