03.01.2014, 19:49
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) VerificarVeiculo(playerid); return 1; }
Код:
forward VerificarVeiculo(playerid); public VerificarVeiculo(playerid) { for(new c = 0; c <= 4; c++) { if(IsPlayerInVehicle(playerid, VPMilitar[c]) && PlayerInfo[playerid][PMilitar] < 1) { SendClientMessage(playerid, Branco, "Vocк nгo й da Policia Militar"); RemovePlayerFromVehicle(playerid); return 1; } } return 1; }
Feito pelo : Josma_cmd https://sampforum.blast.hk/showthread.php?tid=270889