13.05.2018, 12:34
Hi, I'm scripting a sumo server and I wanted to know How I script an auto spectating active players system, it will auto spectate when you fell/die (get eliminated from the game).
What functions I need to use to make it to work?
I tried this one but it seems not working :\
What functions I need to use to make it to work?
I tried this one but it seems not working :\
Код:
foreach(Player,target) { if(target != playerid) { if(IsPlayerConnected(target)) { if(playerActive[random(target)]) { if(!Alerted4[playerid]) { Alerted4[playerid]=1; PlayerSpectateVehicle(playerid, GetPlayerVehicleID(target)); } } } } }