Not works
#5

Quote:
Originally Posted by grand.Theft.Otto
View Post
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
Reply


Messages In This Thread
Not works - by davve95 - 12.10.2011, 17:52
Re: Not works - by [MG]Dimi - 12.10.2011, 18:30
Re: Not works - by davve95 - 13.10.2011, 16:03
Re: Not works - by grand.Theft.Otto - 13.10.2011, 22:25
Re: Not works - by davve95 - 14.10.2011, 07:09

Forum Jump:


Users browsing this thread: 1 Guest(s)