07.11.2018, 16:37
PHP Code:
new bool:TaPreso[MAX_PLAYERS];
new VeiculoPreso;
public OnGameModeInit() {
Veiculo = CreateVehicle(411, 0.0, 0.0, 15.0, 0.0, 6, 6, -1);
return 1;
}
public OnPlayerSpawn(playerid) {
TaPreso[playerid] = true;
PutPlayerInVehicle(playerid, Veiculo, 0);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate) {
if(newstate != PLAYER_STATE_DRIVER) {
if(TaPreso[playerid] == true) PutPlayerInVehicle(playerid, Veiculo, 0);
}
return 1;
}

