16.02.2019, 11:11
Well, make a Variable that checks if the player is in that job and if he spawns it will send him that message.
For example if that player is in that job it will set that variable to 1. If the variable = 1 it will always send him that message when he spawns. And if that variable is 1 it will always spawn him in his Job location.
Hope you understand.
Example:
For example if that player is in that job it will set that variable to 1. If the variable = 1 it will always send him that message when he spawns. And if that variable is 1 it will always spawn him in his Job location.
Hope you understand.
Example:
Quote:
public OnPlayerConnect(playerid) { if(IsWorking == 1) return { SetSpawnInfo(); SendClientMessage(); } else if(IsWorking == 0) return { SetSpawnInfo(); SendClientMessage(); } return 1; } |