Larsey123IsMe
Unregistered
Hmmm, What is the code(pwn) to spawn a weapon?:
This is all i got
Код:
GivePlayerWeapon(playerid,25, 500); SniperRifle
Huh?
BTW i am new with scripting, But i have made something (who works xD)
Posts: 253
Threads: 36
Joined: Sep 2010
Reputation:
0
This will give the player a sniper rifle with 500 ammo. Put it under onplayerspawn so when he spawns he will recieve this weapon.
Larsey123IsMe
Unregistered
Quote:
Originally Posted by Kwarde
Indeed
pawn Код:
GivePlayerWeapon(playerid, WEAPON_ID, AMMO);
Here is a list of all the weapon ID's: http://weedarr.wikidot.com/gunlist
So you can se that a SniperRifle is 34, and not 25 25 is a shotgun (I think, wait..)
Yes, a shotgun
For example, give a player a sniper with 500 ammo:
pawn Код:
GivePlayerWeapon(playerid, 34, 500);
[EDIT]
Lol Seven posted while I was making this reply.
But whatever, @Seven: It should be a good idea to tell too that Id 25 ain't a sniper rifle
|
Aww Thank You my hero
Posts: 253
Threads: 36
Joined: Sep 2010
Reputation:
0
@ kwarde, I assumed that id 25 was a springfield but thanks for telling him anyway ;P
(Great scripting help tool is SA-MP Script King. It has all id's (cars, sounds, weapons, pickups etc.)