[Ajuda] Carro para admin
#2

pawn Код:
new AdminCars[4]; // Defina isto no topo do GM se tiver 9 carros vocк pхe 10,se tiver 2 carros vocк pхe 3 e assim...
pawn Код:
public OnGameModeInit()
{
AdminCars[0] = AddStaticVehicleEx(496,1660.1147,-1611.1470,13.2624,358.9430,124,103,90000);
AdminCars[1] = AddStaticVehicleEx(411,1650.9912,-1611.0281,13.2893,0.4947,105,107,90000);
AdminCars[2] = AddStaticVehicleEx(429,1642.2440,-1611.2413,13.2931,359.9989,126,126,90000);
AdminCars[3] = AddStaticVehicleEx(424,1632.1814,-1610.8914,13.4915,359.4896,1,0,90000);
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{   if(vid==AdminCars[0]||vid==AdminCars[1]||vid==AdminCars[2]||vid==AdminCars[3])
        {
            if(PlayerInfo[playerid][pAdmin] == 1) { }
            else
            {
                SendClientMessage(playerid,COLOR_GREY,"   Vocк nгo й Admin!"); // Mostra a msg pro cara
                RemovePlayerFromVehicle(playerid);//Tira o cara do veiculo
                TogglePlayerControllable(playerid, 1);//deixa ele com movimento (playerid, 0) deixa ele congelado
            }
        }
Prуxima vez usa o search!
Reply


Messages In This Thread
[Ajuda] Carro para admin - by wallacematheus - 30.09.2010, 13:28
Re: [Ajuda] Carro para admin - by Macintosh - 30.09.2010, 14:11
Re: [Ajuda] Carro para admin - by [BEP]AcerPilot - 30.09.2010, 14:13
Re: [Ajuda] Carro para admin - by Gabriel_Halls - 30.09.2010, 15:09
Re: [Ajuda] Carro para admin - by elsimei - 15.02.2014, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)