09.02.2012, 20:35
I don't now why skins are wrong..
example: There is a cops skin and i have a GameText with STUNTER .____.
There is my OnPlayerRequestClass
Pls help me з_з
Sorry for my bad english
example: There is a cops skin and i have a GameText with STUNTER .____.
There is my OnPlayerRequestClass
pawn Код:
forward SetPlayerTeamFromClass(playerid, classid);
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
return 1;
}
public SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 19 || classid == 21 || classid == 22 || classid == 23 || classid == 25 || classid == 24 || classid == 28 || classid == 29 || classid == 30 || classid == 44 || classid == 47 || classid == 48)
{
gTeam[playerid] = STUNTER;
GameTextForPlayer(playerid,"~r~STUNTER",3000,5);
SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779);
SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909);
SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
SetPlayerFacingAngle(playerid,122.4500);
SetPlayerColor(playerid, COLOR_ORANGE);
}
else if(classid == 59 || classid == 66 || classid == 67 || classid == 86 || classid == 98 || classid == 104 || classid == 103 || classid == 105 || classid == 106 || classid == 107 || classid == 108 || classid == 109 || classid == 114 || classid == 296 || classid == 293 || classid == 292 || classid == 271 || classid == 186)
{
gTeam[playerid] = STUNTER;
GameTextForPlayer(playerid,"~r~STUNTER",3000,5);
SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779);
SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909);
SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
SetPlayerFacingAngle(playerid,122.4500);
SetPlayerColor(playerid, COLOR_ORANGE);
}
else if(classid == 265 || classid == 266 || classid == 267 || classid == 279 || classid == 280 || classid == 281)
{
GameTextForPlayer(playerid,"~b~ - POLIZIA - ",3000,5);
gTeam[playerid] = POLIZIA;
GameTextForPlayer(playerid,"~b~POLIZIA",3000,5);
SetPlayerPos(playerid,1480.9958,-1752.0626,15.4453);
SetPlayerCameraPos(playerid,1480.9958,-1752.0626,15.4453);
SetPlayerCameraLookAt(playerid,1480.9958,-1752.0626,15.4453);
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
SetPlayerFacingAngle(playerid,252.4717);
SetPlayerColor(playerid, COLOR_BLUE);
}
}
Sorry for my bad english