SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 16/03/2012, 06:36 PM   #1
thefatshizms
High-roller
 
Join Date: Dec 2011
Location: England
Posts: 1,740
Reputation: 177
Default easy question [+rep]

hi sa-mp community this is a very silly question but i have forgotten something

if i want to add a class like this:

AddPlayerClass(285,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
wich set of numbers is the weapon they spawn with and its amo?
__________________
SFCNR Twitter | SFCNR Forum
thefatshizms is offline   Reply With Quote
Old 16/03/2012, 06:37 PM   #2
jameskmonger
Banned
 
Join Date: Nov 2009
Location: London, England
Posts: 1,197
Reputation: 73
Default Re: easy question [+rep]

http://wiki.sa-mp.com/wiki/AddPlayerClass

pawn Code:
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
jameskmonger is offline   Reply With Quote
Old 16/03/2012, 06:39 PM   #3
GNGification
Big Clucker
 
Join Date: Nov 2010
Location: Finland
Posts: 169
Reputation: 3
Default Re: easy question [+rep]

First number is skin ID, next 6 are the ones you use for coordinates
I suggest you to give weapons with GivePlayerWeapon^^

Anyways read samp wiki
GNGification is offline   Reply With Quote
Old 16/03/2012, 06:41 PM   #4
thefatshizms
High-roller
 
Join Date: Dec 2011
Location: England
Posts: 1,740
Reputation: 177
Default Re: easy question [+rep]

ok just to make sure if i wanted to make it with swat skin and minigun with 500amo it would look like this?

AddPlayerClass(285,1759.0189,-1898.1260,13.5622,38,500,266.4503,-1,-1,-1,-1,-1,-1);
__________________
SFCNR Twitter | SFCNR Forum
thefatshizms is offline   Reply With Quote
Old 16/03/2012, 06:51 PM   #5
jameskmonger
Banned
 
Join Date: Nov 2009
Location: London, England
Posts: 1,197
Reputation: 73
Default Re: easy question [+rep]

No, it wouldn't.
jameskmonger is offline   Reply With Quote
Old 17/03/2012, 12:39 PM   #6
petrolhead
Huge Clucker
 
petrolhead's Avatar
 
Join Date: Mar 2012
Posts: 224
Reputation: 23
Default Re: easy question [+rep]

you better make

public OnPlayerSpawn
petrolhead is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
One easy question Peep Help Archive 9 28/03/2010 03:05 PM
Hello all i got one question (very easy to answer J.I.C question) SAMPfan109 General 0 06/03/2010 05:43 PM
Easy question armyoftwo Help Archive 1 05/02/2010 07:41 PM
Easy question zanakinz Help Archive 1 22/03/2009 02:15 AM


All times are GMT. The time now is 04:16 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.