24.06.2011, 15:18
E ae galera, tava querendo uma ajuda com um sistema de sequestro, tipo assim queria que quando o player esteja sequestrado nгo possa pular do veiculo. Й isso ,valeu!
TogglePlayerControllable(giveplayerid, 0);//O player sequestrado nгo se mechera.
TogglePlayerControllable(giveplayerid, 1);// O player sequestrado pode se mecher.
TogglePlayerControllable(giveplayerid, 1);
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(Sequestrado[playerid] == true)
{
PutPlayerInVehicle(playerid, GetPlayerVehicleID(playerid), GetPlayerVehicleSeat(playerid));
SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo pode sair do veiculo enquanto estiver sequestrado.");
}
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(Sequestrado[playerid] == true) {
PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));
SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo pode sair do veiculo enquanto estiver sequestrado.");
}
return 0x01;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
new ricop522 = GetPlayerState(playerid);
if(Sequestrado[playerid] == 1 && ricop522 == PLAYER_STATE_PASSENGER) {
PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));
SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo pode sair do veiculo enquanto estiver sequestrado.");
}
return 0x01;
}