Код:
Linha 34455 public OnPlayerConnect(playerid)
{
CreatePlayer3DTextLabel(playerid,"DIGITAR /GASOLINA PARA ENCHER O TANQUE !",0x008080FF,1944.7036,-1774.6039,13.3906,50.0);
CreatePlayer3DTextLabel(playerid,"DIGITAR /GASOLINA PARA ENCHER O TANQUE !",0x008080FF,1836.1078,-2428.0291,13.5547,500.0);
SetPlayerMapIcon( playerid, 54, 1944.7036,-1774.6039,13.3906, 55, 3 );
SetPlayerMapIcon( playerid, 55, 1836.1078,-2428.0291,13.5547, 55, 3 );
return 1;
}
Код:
Linha 34520 public OnPlayerExitVehicle(playerid, vehicleid)
{
TogglePlayerControllable(playerid,1);
return 1;
}
Код:
Linha 34526 public OnPlayerStateChange(playerid, newstate, oldstate)
{
new veiculoid = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
marcha[playerid] = 1;
GetVehicleParamsEx(veiculoid,motor,luzes,alarme,porta,capota,mala,objetivo);
SetVehicleParamsEx(veiculoid,VEICULO_DESLIGADO,luzes,alarme,porta,capota,mala,objetivo);
}
return 1;
}
Код:
Linha 34537 public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys && KEY_FIRE)
{
if (IsPlayerInAnyVehicle(playerid))
{
ativado[playerid] = true;
SetTimerEx("ativa",2000,false,"i",playerid);
}
}
return 1;
}