Quote:
Originally Posted by Jochemd
GetPlayerJobID? You must be talking shit. Also you're using 'cases' and you haven't even used switch?
You got to do it like this
pawn Код:
public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0, 1: // Class the player is currently seeing is ID 0 (Citizen) or ID 1 (Citizen) { GameTextForPlayer(playerid,"Citizen",50000,3); } case 2, 3: // Class the player is currently seeing is ID 2 (Cop) or ID 3 (Cop) { GameTextForPlayer(playerid,"Cop",50000,3); } case 4: // Class the player is currently seeing is ID 4 (Criminal) { GameTextForPlayer(playerid,"Citizen",50000,3); } } return 1; }
|
man, I don't need it, I had it before, I mean when player have to choose a skin he can take only 2 skin which his job has, like:
I've citizen job and I can choose only 0 and 1 but others skins I can't see, understood?