01.04.2009, 21:21
well right now i have this
but theres times when a cheater comes in he teleports and uses cheats so the WorldBounds , Dont bring him back so i whant to make it so it just teleports back every time he croses the area .. u get it?
example: a c heater uses gravity or w/e it is "cheats" so the worldbounds dont let him go. i whant it so every time he users his "cheats" to try to get out of the area he eather gets killed or gets teleported back to a set of cords
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if( newstate == PLAYER_STATE_DRIVER ) { if( GetVehicleModel(GetPlayerVehicleID(playerid)) == 520 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 425 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 432 ) { SendClientMessage(playerid, COLOR_LIGREEN, "<!> AS ENTRADO A UN VEHICULO DE GUERRA! NO PODRAS SALIR DE ESTA ZONA CON ESTE COCHE"); SendClientMessage(playerid, COLOR_LIGREEN, "PARA PODER SALIR DE ZONA DE GUERRA SAL DEL VEHICULO DE I BUSCA OTRO COCHE QUE NO SEA DE ESTOS"); SetPlayerWorldBounds(playerid, 677.3168, -478.7929, 2849.402, 1494.768); } } if( oldstate == PLAYER_STATE_DRIVER ) { SetPlayerWorldBounds(playerid, 3500.0000,-3500.0000,3500.0000,-3500.0000); } return 1; }
example: a c heater uses gravity or w/e it is "cheats" so the worldbounds dont let him go. i whant it so every time he users his "cheats" to try to get out of the area he eather gets killed or gets teleported back to a set of cords