Posts: 23
Threads: 7
Joined: Aug 2009
Reputation:
0
Hai, i need help to know how to do so i spawn with a weapon, example: I spawn and then i have a chainsaw and some other weapons. I don't get this to work and yes, im new to pwn scripting.
Thanks for ya help --- Petter_Henrik ---
Posts: 6,129
Threads: 36
Joined: Jan 2009
Or, you can alternatively give the player the weapon where the code OnPlayerSpawn(playerid) is.
Example:
pawn Код:
public OnPlayerSpawn(playerid)
{
GivePlayerWeapon(playerid, 38, 99999); // Minigun with unlimited Ammo.
}
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by x-ray313
Quote:
Originally Posted by Calgon
Or, you can alternatively give the player the weapon where the code OnPlayerSpawn(playerid) is.
Example:
pawn Код:
public OnPlayerSpawn(playerid) { GivePlayerWeapon(playerid, 38, 99999); // Minigun with unlimited Ammo. }
|
Yes, Both ways work. If you want to use less lines then use my suggestion or use Calgon's.
|
If I recall correctly - You can only spawn 2 weapons using the AddPlayerClass function.
Posts: 143
Threads: 2
Joined: Feb 2008
Reputation:
0
You can have 3 with AddPlayerClass, and as many as you want with the alternative way.