OnPlayerRequestClass
#1

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;
}
Reply
#2

Код:
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?
Reply
#3

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;
}
Reply
#4

You want to make an class selection with a text?
Reply
#5

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

I want text iswell when you select one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)