01.01.2010, 00:20
Theres something wrong with my requestclass....it's invisible
I'm done my script except this lol....
how do i fix it?
I'm done my script except this lol....
how do i fix it?
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerTeamFromClass(playerid, classid); SetPlayerColor(playerid,COLOR_DEADCONNECT); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 435.355652,2532.222900,26.623209); SetPlayerCameraPos(playerid,435.355652,2535.222902,26.623209); SetPlayerCameraLookAt(playerid, 222.1653, 1823.0802, 6.4141); // 435.355652,2532.222900,26.623209 // 257.750336,-42.528057,1002.23438 if (classid >= 0 && classid <= 3) { SetPlayerTeamFromClass(playerid, classid); SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 1574.4642,-1694.2188,6.2188); GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5); } if (classid >= 4 && classid <= 6) { SetPlayerTeamFromClass(playerid, classid); SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 1879.6774,-2543.1067,17.2344); GameTextForPlayer(playerid, " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~~r~~h~RAPIST TEAM!", 6000, 6); } if (classid >= 7 && classid <= 8) { SetPlayerTeamFromClass(playerid, classid); SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 1879.6774,-2543.1067,17.2344); GameTextForPlayer(playerid, "~b~MEDIC", 3000, 5); } if (classid >= 9 && classid <=9) { SetPlayerTeamFromClass(playerid, classid); SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 1879.6774,-2543.1067,17.2344); GameTextForPlayer(playerid, "~w~CAR MECHANIC", 3000, 5); } if (classid >= 10 && classid <= 11) { SetPlayerTeamFromClass(playerid, classid); SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 1879.6774,-2543.1067,17.2344); GameTextForPlayer(playerid, "~g~TAXI DRIVER", 3000, 5); } if (classid >= 12 && classid <= 57) { SetPlayerTeamFromClass(playerid, classid); SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 1879.6774,-2543.1067,17.2344); GameTextForPlayer(playerid, "~w~CIVILIAN~b~~n~CHOOSE A JOB WHEN YOU SPAWN", 3000, 5); } return 1; }