SA-MP Forums Archive
Spawn weapon with cmd - 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: Spawn weapon with cmd (/showthread.php?tid=323908)



Spawn weapon with cmd - Alazam - 07.03.2012

I want a script for it


Re: Spawn weapon with cmd - GNGification - 07.03.2012

''Please''
For more information use samp wiki but this is some shit I made on phone

pawn Код:
if (strcmp("/M4", cmdtext, true, 10) == 0)
{
      GivePlayerWeapon(playerid,31,500);
      return 1;
}
31 = WeaponID
500 = Ammo

Samp wiki weapons list: https://sampwiki.blast.hk/wiki/Weapons
GivePlayerWeapon function: https://sampwiki.blast.hk/wiki/GivePlayerWeapon


Re: Spawn weapon with cmd - Alazam - 07.03.2012

Thank