Onplayerrequestclass dont show player skin
#1

I wanna know how to do this

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1999.2517,-755.3153,129.1501);
SetPlayerCameraPos(playerid, 1999.2517,-755.3153,129.1501);
SetPlayerCameraLookAt(playerid, 1999.2517,-755.3153,129.1501);
SetPlayerFacingAngle(playerid,108.0085);

if(classid == 0)
{
GameTextForPlayer(playerid, "~r~ Human", 9000, 3);
gTeam[playerid] = TEAM_HUMAN;
}
else if(classid == 1)
{
GameTextForPlayer(playerid, "~b~ Zombie", 9000, 3);
gTeam[playerid] = TEAM_ZOMBIE;
}
return 1;
}

This wont show player skin on playerrequest class
I wanna show skin of each group
how to do that?

For eg: i wann do it like this

the current is

see no player skin is showing
Reply
#2

Did you added player class in OnGamemodeInit ?

Example:
pawn Код:
public OnGameModeInit()
{
    // People can spawn with either the CJ skin or The Truth skin.
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
    return 1;
}
Reply
#3

AddPlayerClass(20,2512.0393,-1670.2340,13.4665,95.4520,0,0,0,0,0,0); // HUMAN SPAWN
AddPlayerClass(162,2018.6625,1200.9680,17.3856,310 .6343,0,0,0,0,0,0); // ZOMBIE SPAWN

yes i did
Reply
#4

Look OnGameModeInit.

pawn Код:
AddPlayerClass(..); // TEAM HUMAN   // First Class created
AddPlayerClass(..); // TEAM HUMAN   // Second Class created
AddPlayerClass(..); // TEAM ZOMBIE  // Third Class created
AddPlayerClass(..); // TEAM ZOMBIE  // Fourth Class created


In OnPlayerRequestClass:
pawn Код:
if(classid == 0) // First Class (Human)
if(classid == 1) // Second Calss (Human)
if(classid == 2) // Thirdh Class (Zombie)
if(classid == 3) // Last Class (Zombie)
Simply.
Reply
#5

sorry i dont understand can you simplify?

i have this under onplayerrequestclass

if(classid == 0)
{
GameTextForPlayer(playerid, "~r~ Human", 9000, 3);
gTeam[playerid] = TEAM_HUMAN;
}
else if(classid == 1)
{
GameTextForPlayer(playerid, "~b~ Zombie", 9000, 3);
gTeam[playerid] = TEAM_ZOMBIE;
}
return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)