19.06.2013, 09:54
Atй aн jб tinha chegado... mas nгo funciona
O que jб tentei:
e isto
E nenhum funciona :/
O que jб tentei:
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(iPlayer[playerid][Emprego] == 1 && vehicleid == cTransportador[3])
{
SetTimer("EjectarPlayer", 2000, false);
SendClientMessage(playerid, Vermelho, "[ERRO:] Nгo podes andar nesse veнculo!");
}
return 1;
}
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(iPlayer[playerid][Emprego] != 2 && vehicleid == cTransportador[3])
{
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}