Quote:
Originally Posted by grand.Theft.Otto
Yes, you need to add more code. Whenever you use AddPlayerClass, you must add this under OnPlayerRequestClass:
pawn Code:
switch(classid) { case 0: // this is the FIRST AddPlayerClass line you have under ongamemodeinit { SetPlayerPos(playerid, x,y,z); // set there x y z position of where u want them to stand SetPlayerCameraPos(playerid, x,y,z); // set where you want the camera to be positions to show them SetPlayerCameraLookAt(playerid, x,y,z); // should use the same coordinates here as SetPlayerPos // you can also add anims like dancing anims } case 1: // this is the SECOND AddPlayerClass line you have under ongamemodeinit { // do the same as case 0 // you can also add anims like dancing anims } case 2: // this is the THIRD AddPlayerClass line you have under ongamemodeinit { // do the same as case 0 // you can also add anims like dancing anims } }
// in total , case 0,1 and 2 are the first 3 AddPlayerClass lines you have // if you want more, you can add case 3, case 4, etc .. but you need to add more AddPlayerClass
https://sampwiki.blast.hk/wiki/AddPlayerClass
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
https://sampwiki.blast.hk/wiki/ApplyAnimation
|
Thank you so much Otto +1 rep