SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/05/2014, 03:16 AM   #1
aswinnarayanan
Big Clucker
 
aswinnarayanan's Avatar
 
Join Date: Nov 2013
Posts: 50
Reputation: 6
Default Help

How to make a class system?
I try to make it but not work
__________________
Skype: Aswinnarayanansamp



Free Samp Server Hosting,get your 50 slot server now! on Time Host




http://timehostup.com/


REP +1 Me and I will REP +1 you
aswinnarayanan is offline   Reply With Quote
Old 12/05/2014, 03:21 AM   #2
Ramoboss
Big Clucker
 
Ramoboss's Avatar
 
Join Date: Nov 2012
Location: Algerien et Fier ^^
Posts: 115
Reputation: 24
Default Re : Help

Here for ya !

i just ******d " Class System samp " and i found it, try to be more standalone
__________________
Ramoboss is offline   Reply With Quote
Old 12/05/2014, 03:23 AM   #3
Deal-or-die
Huge Clucker
 
Deal-or-die's Avatar
 
Join Date: Oct 2010
Location: An Island 1000's of miles away
Posts: 366
Reputation: 22
Default Re: Help

pawn Code:
SetupPlayerForClassSelection(playerid)
{
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}

public OnPlayerRequestClass(playerid, classid)
{
    SetupPlayerForClassSelection(playerid);
    return 1;
}

pawn Code:
public OnGameModeInit()
{
    SetGameModeText("SA:MP Server");
    AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
        AddPlayerClass(241,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
    return 1;
}

Credits to SAMP :P
__________________
/////////////////////////// | Mini Moot | \\\\\\\\\\\\\\\\\\\\\\\\\\\

"I'm in the country that basically invented the Internet, and your getting faster speeds on an island 1,000miles away"
Deal-or-die 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



All times are GMT. The time now is 03:44 PM.


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