Quote:
Originally Posted by [Full]Garfield[XDB]
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; }
|
Nesse caso o "new BOPE[MAX_PLAYERS];" nгo estб a fazer NADA. E nгo defini que o "Veiculo" й sу dos BOPE...
O que vocк fez foi:
TODOS os jogadores que entrarem no "Veiculo" sгo removidos!