Posts: 48
Threads: 5
Joined: Aug 2011
Reputation:
0
I tried to AddPlayerClass in main() or OnGameModeInit and many other places..I set the right positions and weapons , skin etc..
But the player never seens to show in the class selection , so i cant spawn..
Can someone makes me a simple code to add skin 118 with weapons : 4,1 && 24,200
Please any locations, I just want it to work.
Posts: 48
Threads: 5
Joined: Aug 2011
Reputation:
0
hmm and i can add classes with any location ? dont need to be the same as that one ?
Posts: 48
Threads: 5
Joined: Aug 2011
Reputation:
0
I know C++ but im new to samp stuff :S
Posts: 48
Threads: 5
Joined: Aug 2011
Reputation:
0
Now i got another problem, only CJ shows up, and i cant spawn him...(And i didn added CJ , i added id 118 )
Posts: 48
Threads: 5
Joined: Aug 2011
Reputation:
0
public OnPlayerRequestClass(playerid, classid)
{
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);
return 1;
}
public OnGameModeInit(){
SetGameModeText("Fun OverDose!");
AddPlayerClass(118,835.938354, -2039.453613, 12.867187,180.468139,4,1,24,200,0,0);
}
Only CJ shows up.