25.08.2012, 10:48
I just created a weapon system for testing this weapon detector that would give me a weapon with 1 bullet. So by removing the weapon, I actually just shoot out the 1 bullet, which makes the weapon dissapear.
Код:
CMD:weapon(playerid, params[]) { if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Error. Usage: /weapon [weaponid]"); if(strval(params) > 43 || strval(params) < 1) return SendClientMessage(playerid, COLOR_RED, "Error. Models are between 1 and 43."); GivePlayerWeapon(playerid,(strval(params)),1); return 1; }