09.01.2014, 23:23
Tente desta meneira meu caro.
PHP код:
public ADMcarro(playerid)
{
for(new c = 0; c <= 14; c++)
{
if(IsPlayerInVehicle(playerid, CarrosAdm[c]) && PlayerDados[playerid][Helper] == false || PlayerDados[playerid][Admin] < 1)
{
RemovePlayerFromVehicle(playerid);
Msg(playerid, CINZA, "[ERRO] Veiculos apenas para administradores.");
}
}
return 1;
}
public ADMcarro(playerid)
{
for(new c = 0; c <= 14; c++)
{
if(IsPlayerInVehicle(playerid, CarrosAdm[c]) && PlayerDados[playerid][Helper] == false || PlayerDados[playerid][Admin] < 1)
{
RemovePlayerFromVehicle(playerid);
Msg(playerid, CINZA, "[ERRO] Veiculos apenas para administradores.");
}
}
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER) CarrosAdm(playerid);
return 1;
}