16.04.2010, 11:00
i knw thts why m confused also i think theres somethng wrong with this line
bt thts not my concern now right now i want the Set colors to teams dnt knw wats goin wrong
Код:
switch (classid) { case 0: { GameTextForPlayer(playerid, "~w~Citizen",500, 3); if(IsPlayerJob(playerid) == 1) { GameTextForPlayer(playerid, "~w~ Civilian~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3); return 1; } else { GameTextForPlayer(playerid, "~w~ Civilian~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3); return 1; } } case 1: { GameTextForPlayer(playerid, "~b~ FBI",900, 3); if(IsPlayerJob(playerid) == 2) { GameTextForPlayer(playerid, "~b~ FBI ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3); return 1; } else { GameTextForPlayer(playerid, "~b~ FBI ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3); return 1; } } case 2: { GameTextForPlayer(playerid, "~b~Medic Cop",900, 3); if(IsPlayerJob(playerid) == 3) { GameTextForPlayer(playerid, "~b~Medic cop ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3); return 1; } else { GameTextForPlayer(playerid, "~b~Medic cop ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3); return 1; } } case 3: { GameTextForPlayer(playerid, "~b~ Cops Arms Dealer",5000, 6); if(IsPlayerJob(playerid) == 4) { GameTextForPlayer(playerid, "~b~ Cops Arms Dealer ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3); return 1; } else { GameTextForPlayer(playerid, "~b~ Cops Arms Dealer ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3); return 1; } } case 4: { GameTextForPlayer(playerid, "~b~ Army Man",2000, 3); if(IsPlayerJob(playerid) == 5) { GameTextForPlayer(playerid, "~b~ Army Man ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3); return 1; } else { GameTextForPlayer(playerid, "~b~ Army Man ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3); return 1; } } case 5: { GameTextForPlayer(playerid, "~p~ Secret Service",900, 3); if(IsPlayerJob(playerid) == 6) { GameTextForPlayer(playerid, "~p~ Secret Service ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3); return 1; } else { GameTextForPlayer(playerid, "~p~ Secret Service ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3); return 1; } } case 6: { GameTextForPlayer(playerid, "~b~Cop",2000, 3); if(IsPlayerJob(playerid) == 7) { GameTextForPlayer(playerid, "~b~Cop ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3); return 1; } else { GameTextForPlayer(playerid, "~b~Cop ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3); return 1; } } case 7: { GameTextForPlayer(playerid, "~p~ S.W.A.T",900, 6); if(IsPlayerJob(playerid) == 8) { GameTextForPlayer(playerid, "~p~ S.W.A.T ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3); return 1; } else { GameTextForPlayer(playerid, "~p~ S.W.A.T ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3); return 1; } } } return 1; }