SA-MP Forums Archive
OnPlayerRequestClass - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerRequestClass (/showthread.php?tid=337422)



OnPlayerRequestClass - sanplayer - 26.04.2012

How do I make it show the person?

It sets the colour etc.

pawn Код:
// Classes
    AddPlayerClass(188,2512.8611,-1673.2799,13.5104,87.7485,0,0,0,0,0,0); // Grove Spawn
    AddPlayerClass(280,1543.7747,-1675.7197,13.5571,92.8834,0,0,0,0,0,0); // LSPD Spawn
This is the OnPlayerReqeustclass

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    // With this you save the chosen class number into pClass[playerid]
    pClass[playerid] = classid;
   
    SetPlayerPos(playerid, 1543.7747, -1675.7197, 13.5571);
    SetPlayerCameraPos(playerid, 1553.7931, -1677.5583, 51.8137);
    SetPlayerCameraLookAt(playerid, 1553.7931, -1677.5583, 51.8137);
    return 1;
}



Re: OnPlayerRequestClass - MP_Spec - 26.04.2012

Код:
public OnPlayerRequestClass(playerid, classid)
{
    // With this you save the chosen class number into pClass[playerid]
    pClass[playerid] = classid;
    
    switch(classid)
    {
         case 0: SetPlayerColor(playerid, 0xFF0000FF);
         case 1: SetPlayerColor(playerid, 0x00FF00FF);
    }   

    SetPlayerPos(playerid, 1543.7747, -1675.7197, 13.5571);
    SetPlayerCameraPos(playerid, 1553.7931, -1677.5583, 51.8137);
    SetPlayerCameraLookAt(playerid, 1553.7931, -1677.5583, 51.8137);
    return 1;
}
Colour?


Re: OnPlayerRequestClass - robintjeh - 26.04.2012

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    // With this you save the chosen class number into pClass[playerid]
    pClass[playerid] = classid;
   
    SetPlayerPos(playerid, 1543.7747, -1675.7197, 13.5571);
    SetPlayerCameraPos(playerid, 1553.7931, -1677.5583, 51.8137);
    SetPlayerCameraLookAt(playerid, 1543.7747, -1675.7197, 13.5571);
    return 1;
}



AW: OnPlayerRequestClass - Santox14 - 26.04.2012

You want to make an class selection with a text?


Re: OnPlayerRequestClass - sanplayer - 26.04.2012

the camera works. It shows the background but doesnt show the person.

I want text iswell when you select one