[Pedido] OnPlayerEnterVehicle
#5

pawn Код:
//Uma Base.....
//TOPO DO GAMEMODE

new CarrosAdmin[1]; // Quantidade de Carros que Foi Adicionado.

//OnGameModeInit
CarrosAdmin[0] = AddStaticVehicleEx(....... // Coloca o Primeiro carro aqui

//public OnPlayerStateChange
if(newstate == PLAYER_STATE_DRIVER)
{
if(CarrosADM(newcar))
{
if(PlayerInfo[playerid][pAdmin] >= 1) //Funзгo do Administrador ou de Org/prof Oque Desejar ..... й so uma base
{
SendClientMessage(playerid,-1, "Vocк nгo й um Admin. !");
RemovePlayerFromVehicle(playerid);
}
}
}

//NO FINAL DO GAMEMODE

stock CarrosADM(carid)
{
for(new i=0;i<sizeof(CarrosAdmin);i++) if(carid == CarrosAdmin[i]) return 1;
return 0;
}
Reply


Messages In This Thread
OnPlayerEnterVehicle - by goku114 - 14.01.2014, 12:51
Re: OnPlayerEnterVehicle - by IGp - 14.01.2014, 12:55
Re: OnPlayerEnterVehicle - by FrostyWolf - 14.01.2014, 13:11
Re: OnPlayerEnterVehicle - by Gii - 14.01.2014, 13:13
Re: OnPlayerEnterVehicle - by kevinho.007 - 14.01.2014, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)