SA-MP Forums Archive
Beginner - How To: Create An Player Class - 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: Beginner - How To: Create An Player Class (/showthread.php?tid=107323)



Beginner - How To: Create An Player Class - Camacorn - 09.11.2009

[b]
New To Pawno ? Need Help? Well, im here to teach you the basics of scripting!

So you want to create an player class? Here are the step by step basics:
NOTE: may differ on some gamemodes!

1) Open Pawno.
2) Start A New Script.

3) Pick out an player skin to use! for this example im going to use skin "627"!

4) Here is an diagram:
Код:
public OnGameModeInit( )
{
  // CJ SKIN.
  AddPlayerClass( 0, X, Y, Z, A , 0, 0 );
  return 1;
}
[b]
5) Heres An Example:
Код:
public OnGameModeInit( )
{
  // CJ SKIN
  AddPlayerClass( 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
  return 1;
}
[b]I hope this has helped some of you new scripters!

More Beginner Lessons Coming Soon!


Re: Beginner - How To: Create An Player Class - Rickyboy30 - 09.11.2009

How about:
https://sampwiki.blast.hk/wiki/AddPlayerClass
lol ^^


Re: Beginner - How To: Create An Player Class - Camacorn - 09.11.2009

yes, but the way i explained it, is easier to understand by beginners.


Re: Beginner - How To: Create An Player Class - Finn - 09.11.2009

Could you please send a picture of skin 627, must be a nice one.

TBH, the SA-MP wiki contains alot more information about adding player classes than this your 'tutorial' which is made in less than 2 minutes.

Please, if you're going to make tutorials in the future, spend some time while writing them so they won't be as crap as this one.


Re: Beginner - How To: Create An Player Class - Camacorn - 09.11.2009

-Message Removed By Author- Sorry For Double Posting


Re: Beginner - How To: Create An Player Class - Camacorn - 09.11.2009

Quote:
Originally Posted by Finn
Could you please send a picture of skin 627, must be a nice one.

TBH, the SA-MP wiki contains alot more information about adding player classes than this your 'tutorial' which is made in less than 2 minutes.

Please, if you're going to make tutorials in the future, spend some time while writing them so they won't be as crap as this one.
[b]Skin "627" Is A Modded Skin I Made Work With My SA-MP Server Using An Application Called "Spark"
Its Just A "Mall Cop" For Roleplaying:




Re: Beginner - How To: Create An Player Class - Finn - 09.11.2009

What the fuck ain't skins from 0 to 300 or something like that?


Re: Beginner - How To: Create An Player Class - Camacorn - 09.11.2009

the program alowws you to edit SA-MP skins, weapons, cars Etc..


Re: Beginner - How To: Create An Player Class - Lajko1 - 09.11.2009

you should tell us/them what mean x,y,z,numberhere,numberhere ... like coordinate x, coordinate y,coordinate z, and last 2 numbers are facing angels if i am not wrong lol make more explained tutorials anyway good tut


Re: Beginner - How To: Create An Player Class - Daren_Jacobson - 09.11.2009

you didn't even use skin 627 in your examples.