19.03.2019, 19:01
(
Last edited by Don_Speed; 19/03/2019 at 07:38 PM.
)
PHP Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new veh = 0; veh< sizeof CarrosAdm; veh++)
{
if(GetPlayerVehicleID(playerid) == CarrosAdm[veh])
{
if(PlayerDados[playerid][Admin] < 1)
{
Msg(playerid, CINZA, "Vocк precisa ser admin para usar este carro.");
RemovePlayerFromVehicle(playerid);
}
}
}
if(PlayerDados[playerid][Admin] < 1)
{
if(PlayerDados[playerid][Trabalhando] == true)
{
SetTimerEx("NomeCarro", 3500, false, "i", playerid);
}
}
return 0;
}
Se meu codigo nгo funcionar verifique o tutorial e refaзa .