30.03.2013, 11:08
Not worked.
When i select Police, it says message but im able to spawn.
When i select Police, it says message but im able to spawn.
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, -1566.880859, -2729.819824, 48.743457); SetPlayerFacingAngle(playerid, 56.649963); SetPlayerCameraLookAt(playerid, -1566.880859, -2729.819824, 48.743457); SetPlayerCameraPos(playerid, -1566.880859 + (10 * floatsin(-56.649963, degrees)), -2729.819824 + (10 * floatcos(-56.649963, degrees)), 48.743457); switch(classid) // Switching between the classids { case 0..2: { SetPlayerTeam(playerid, Trucker); // Setting players team GameTextForPlayer(playerid, "~w~Trucker", 1000, 3); // Screen msg for player to show what team } case 3..4: { if(GetPlayerScore(playerid) < 25) return SendClientMessage(playerid, COLOR_RED,"You Need 25 Scores to be Bus Driver."); SetPlayerTeam(playerid, BusDriver); // Same as above GameTextForPlayer(playerid, "~y~Bus Driver", 1000, 3); // Same as above } case 5..7: { if(GetPlayerScore(playerid) < 25) return SendClientMessage(playerid, COLOR_RED,"You Need 100 Scores to be Police Officer."); SetPlayerTeam(playerid, Police); // Same as above GameTextForPlayer(playerid, "~b~Police", 1000, 3); // Same as above } } return 1; }