29.08.2010, 12:03
(
Последний раз редактировалось Fredden1993; 29.08.2010 в 13:39.
)
What have I done wrong, the skins keeps going over each other, for example, the civilian skins still displayed when the Police skins should be displayed... only some of them, maybe 2.
I have 211 Civilian skins, 7 Police skins and 2 Sheriff skins.
Here is what I'm using:
All skins are added with AddPlayerClass.
Thanks
I have 211 Civilian skins, 7 Police skins and 2 Sheriff skins.
Here is what I'm using:
Код:
public OnPlayerRequestClass(playerid, classid) { new string[256]; SetPlayerColor(playerid, COLOR_GREY); if(classid >= 0 && classid <= 209) { format(string, sizeof(string), "~g~Civilians"); GameTextForPlayer(playerid, string, 3000, 5); SetPlayerPos(playerid, 365.6577,173.8303,1008.3828); SetPlayerFacingAngle(playerid, 270.3640); SetPlayerCameraPos(playerid, 369.2415,173.8287,1008.3893); SetPlayerCameraLookAt(playerid, 365.6577,173.8303,1008.3828); SetPlayerInterior(playerid, 3); gTeam[playerid] = 1; } if(classid >= 210 && classid <= 220) { format(string, sizeof(string), "~b~Police Department"); GameTextForPlayer(playerid, string, 3000, 5); SetPlayerPos(playerid, 254.4077,75.5373,1003.6406); SetPlayerFacingAngle(playerid, 0.3134); SetPlayerCameraPos(playerid, 254.4405,79.5426,1003.6406); SetPlayerCameraLookAt(playerid, 254.4077,75.5373,1003.6406); SetPlayerInterior(playerid, 6); gTeam[playerid] = 2; } if(classid >= 221 && classid <= 222) { format(string, sizeof(string), "~b~Sheriffs Department"); GameTextForPlayer(playerid, string, 3000, 5); SetPlayerPos(playerid, 325.5504,307.0217,999.1484); SetPlayerFacingAngle(playerid, 91.6178); SetPlayerCameraPos(playerid, 321.5965,306.9950,999.1484); SetPlayerCameraLookAt(playerid, 325.5504,307.0217,999.1484); SetPlayerInterior(playerid, 5); gTeam[playerid] = 3; } return 1; }
Thanks