09.07.2009, 13:42
pawn Код:
if(strcmp("/buygunsawnoff", cmdtext, true, 13) == 0)
{
if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "You dont have the Money for that");
if(IsInDM[playerid] == 1) return SendClientMessage(playerid, COLOR_DBLUE, "You must leave the DM First. type /kill to leave.");
GivePlayerWeapon(playerid, 28, 256); //< ID 28 is Micro Uzi
GivePlayerMoney(playerid, -10000);
return 1;
}
pawn Код:
GivePlayerWeapon(playerid, weaponid, ammunition);
https://sampwiki.blast.hk/wiki/Weapon_IDs