16.02.2019, 12:08
Quote:
this script explains that if a player has a job he recieves a messae , and others recieve another message. well thats part of the script
BUt my point is , there are multiple jobs like 10 whenever a certain job connects he gets the appopriate color for his job and we see the message welcome to (jobname) ![]() and every player with a job has his own color for example if he i a farmer he gets gray color |
Well, You can add more Variables, like this:
Quote:
new Farmer; new Miner; new Lumberjack; new Unemployed; public OnPlayerConnect(playerid) { if(Farmer == 1) { SetPlayerColor() } if(Miner == 1) { SetPlayerColor() } if(Lumberjack == 1) { SetPlayerColor() } if(Unemployed == 1) { SetPlayerColor() } return 1; } |