26.03.2016, 20:32
Код:
public StartingGame2(playerid, vehicleid, seatid) { iscrim[Players] = 1; if(iscrim == 1){ SetPlayerHealth(playerid, 50); SendClientMessage(playerid, 0xE85C20FF, "You are the criminal!"); } else SetPlayerPos(playerid,2138.9658,1463.4701,10.8203); SetPlayerHealth(playerid, 100); }
"Players" is the amount of people online which is done through Players++ and Players-- when user connects and disconnects
After that I will have to check if that player id is in the game and reselect a new random ID, I feel like I am over complicating things but it's the only way I could of