[Pedido]Restringir veнculos sу para bopes!
#3

Menas linhas.

pawn Код:
#define BOPE 0
new BOPE[MAX_PLAYERS];
new Veiculo;

//OnGameModeInit
Veiculo = CreateVehicle(ID, Cord:x, Cord:y, Cord:Z, angle, cor1, cor2, 50000);

public OnPlayerEnterVehicle(/* nгo me lembro os parвmetros */)
{
    if(IsPlayerInVehicle(GetPlayerVehicleID(playerid) ==  Veiculo))
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, 0xFFF000AA, "[BOPE] Vocк nгo tem autorizaзгo para usar este veнculo!");
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)