15.12.2009, 23:28
Ok, i forgot to do the "I" thing, here you go, also thanks to the post above this one, but i made it easier by putting the weapon IDS etc...
Код:
if (strcmp("/equip", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, range, x, y, z))// cords of your pickup ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 300); //Deagle 300 AMMO GivePlayerWeapon(playerid, 31, 300); //M4 300 AMMO SetPlayerArmour( playerid, 100 ); return 1; }