More characters at skin selection
#1

On my server, I can only choose one character. How do I add more?


Screen:


Reply
#2

https://sampwiki.blast.hk/wiki/AddPlayerClass
Reply
#3

Doesnt work.


Added a couple of classes, but when I start up my server, i start at that screen still.. And I end up with CJ.


I want the classes to stand there so I can choose, like on most servers..
Reply
#4

Make sure it's on OnGameModeInit and also change the camera pos.
Reply
#5

Quote:
Originally Posted by [HiC
TheKiller ]
Make sure it's on OnGameModeInit and also change the camera pos.
AddPlayerClass(0,2026.7220,1007.9379,10.8203,270.8 654,0,0,0,0,0,0); //
AddPlayerClass(68,2026.7220,1007.9379,10.8203,270. 8654,0,0,0,0,0,0); //
AddPlayerClass(187,2026.7220,1007.9379,10.8203,270 .8654,0,0,0,0,0,0); //
AddPlayerClass(217,2026.7220,1007.9379,10.8203,270 .8654,0,0,0,0,0,0); //
AddPlayerClass(16,2026.7220,1007.9379,10.8203,270. 8654,0,0,0,0,0,0); //
AddPlayerClass(12,2026.7220,1007.9379,10.8203,270. 8654,0,0,0,0,0,0); //
AddPlayerClass(13,2026.7220,1007.9379,10.8203,270. 8654,0,0,0,0,0,0); //
AddPlayerClass(19,2026.7220,1007.9379,10.8203,270. 8654,0,0,0,0,0,0); //
AddPlayerClass(250,2026.7220,1007.9379,10.8203,270 .8654,0,0,0,0,0,0); //


this is how I have done it, under OnGameModeInit..


What shuld I change?

Also, since I have the thread up, How do I do that when u die, u end up at the hospital, I cant seem to figure it out.
And.. That people start with 50k, and dont get 50k more when they log in or die..
Reply
#6

Quote:
Originally Posted by ee100
Doesnt work.


Added a couple of classes, but when I start up my server, i start at that screen still.. And I end up with CJ.


I want the classes to stand there so I can choose, like on most servers..
You need to set the correct camera coords at the OnPlayerRequestClass callback.
Reply
#7

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by ee100
Doesnt work.


Added a couple of classes, but when I start up my server, i start at that screen still.. And I end up with CJ.


I want the classes to stand there so I can choose, like on most servers..
You need to set the correct camera coords at the OnPlayerRequestClass callback.
Think I'll get it now, but how do I edit the camre angel, since I want my class to stare at the door to 4d, but it stares at the road.. How do I "turn" around?
Reply
#8

Also, since I have the thread up, How do I do that when u die, u end up at the hospital, I cant seem to figure it out.

Under OnPlayerDeath :

SetPlayerPos(playerid , x , y ,z);

and for the money :

Under OnPlayerSpawn

GivePlayerMoney(playerid , 50000);

________
Chevrolet Beauville Specifications
Reply
#9

Make it so under OnPlayerSpawn it sets the players co-ords to the hospital one? Also, this may help you http://forum.sa-mp.com/index.php?topic=2750.0
Reply
#10

srry i didnt read all posts, but if i guess you add players class but you cant see players then you need to check


public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2107.2373,997.2881,10.8203);
SetPlayerCameraPos(playerid, 2107.0745,993.3022,10.8203);
SetPlayerCameraLookAt(playerid, 2107.4353,1002.9740,11.075;
return 1;
}

Most time, that is a problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)