SA-MP Forums Archive
Remove weapons on teleport... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Remove weapons on teleport... (/showthread.php?tid=108052)



Remove weapons on teleport... - DiddyBop - 12.11.2009

im stuck.. im trying to make a DM area.. but i want to remove there current weapons then replace them with the DM zone's weapons.. i looked on wiki for a function to do that and i didnt see... so there must be other way..

Thx.


Re: Remove weapons on teleport... - mascii - 12.11.2009

pawn Код:
ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 31, 1000); // m4
    GivePlayerWeapon(playerid, 34, 15); // sniper
    GivePlayerWeapon(playerid, 16, 5); // grenades
    GivePlayerWeapon(playerid, 27, 200); // shotgun
    GivePlayerWeapon(playerid, 28, 1000); // mirco smg
    GivePlayerWeapon(playerid, 9, 99999); // chain
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
easy


Re: Remove weapons on teleport... - DiddyBop - 12.11.2009

LOL thx.