SA-MP Forums Archive
weapon spawn - 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)
+--- Thread: weapon spawn (/showthread.php?tid=555910)



weapon spawn - PrinXe - 09.01.2015

Friends again i need your help actually i want to know still i havent added any admin system i will add later.but ny queries is that when player spawn after connecting to server then it have many weapons i want to disable all weapons.i want only in dm zones.can anyone have an idea how weapons can be disabled?


Re: weapon spawn - CalvinC - 09.01.2015

https://sampwiki.blast.hk/wiki/ResetPlayerWeapons

Here's a script that removes his weapons when he spawns:
pawn Код:
public OnPlayerSpawn(playerid)
{
    ResetPlayerWeapons(playerid);
    return 1;
}



Re: weapon spawn - PrinXe - 09.01.2015

Any cmd? Or any codes


Re: weapon spawn - CalvinC - 09.01.2015

Just use this function where-ever you want.
pawn Код:
ResetPlayerWeapons(playerid);
It'll remove his weapons.