Onplayerrequestclass dont show player skin -
Beginerinprogress - 27.06.2012
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
Re: Onplayerrequestclass dont show player skin -
Ironboy - 27.06.2012
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;
}
Re: Onplayerrequestclass dont show player skin -
Beginerinprogress - 27.06.2012
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
Respuesta: Onplayerrequestclass dont show player skin -
zSuYaNw - 27.06.2012
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.
Re: Onplayerrequestclass dont show player skin -
Beginerinprogress - 27.06.2012
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;