12.03.2015, 14:09
Quote:
Just use ResetPlayerWeapons first and then GivePlayerWeapon to disarm all other weapons when a player types /sniperdm or /minigundm.
|
PHP код:
CMD:minigundm(playerid, params[])
{
ResetPlayerWeapons(playerid);
GivePlayerWeapons(playerid, WEAPON_MINIGUN, ammo);
//remaining code
}
and
CMD:sniperdm(playerid, params[])
{
ResetPlayerWeapons(playerid);
GivePlayerWeapons(playerid, WEAPON_SNIPER, ammo);
//remaining code
}