QUESTION about Weapons on /duty - 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: QUESTION about Weapons on /duty (
/showthread.php?tid=108849)
QUESTION about Weapons on /duty -
Rickzor14 - 16.11.2009
Hi all,
Its like this:
My server has a SWAT Part in LSPD,
But they need M4's,
How can i add M4 Or other weapons to the Faction,
Must be given to me when i do /policeduty
Re: QUESTION about Weapons on /duty -
DeathOnaStick - 16.11.2009
pawn Код:
if (strcmp("/PoliceDuty", cmd, true, 10) == 0)
{
if(GetPlayerTeam==SWAT)
{
GivePlayerWeapon(playerid, 31, 2000);
SendClientMessage(playerid, COLOR_GREEN, "You're on duty!");
}
else SendClientMessage(playerid, COLOR_GREEN, "You're not in team Swat!");
return 1;
}
want it like this?
Cheers,
DeathOnaStick
Re: QUESTION about Weapons on /duty -
Lajko1 - 16.11.2009
GivePlayerWeapon(playerid,weapondid,ammo); ? if i am not right you are looking for this code ...
or look here
https://sampwiki.blast.hk/wiki/Weapons