More characters at skin selection -
Dolph - 26.02.2010
On my server, I can only choose one character. How do I add more?
Screen:
Re: More characters at skin selection -
[HiC]TheKiller - 26.02.2010
https://sampwiki.blast.hk/wiki/AddPlayerClass
Re: More characters at skin selection -
Dolph - 26.02.2010
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..
Re: More characters at skin selection -
[HiC]TheKiller - 26.02.2010
Make sure it's on OnGameModeInit and also change the camera pos.
Re: More characters at skin selection -
Dolph - 26.02.2010
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..
Re: More characters at skin selection -
Correlli - 26.02.2010
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.
Re: More characters at skin selection -
Dolph - 26.02.2010
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?
Re: More characters at skin selection -
aircombat - 26.02.2010
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
Re: More characters at skin selection -
[HiC]TheKiller - 26.02.2010
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
Re: More characters at skin selection -
DarkPower - 26.02.2010
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