[PEDIDOS] drift
#4

1Є Nitro Infinito -
pawn Код:
#include <a_samp>
#define COLOR_ZIELONY 0xFF00FF

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(Nitro(vehicleid))
    {
        AddVehicleComponent(vehicleid, 1010);
    }
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new nos = GetPlayerVehicleID(playerid);
        if(Nitro(nos) && (oldkeys & 1 || oldkeys & 4))
        {
            RemoveVehicleComponent(nos, 1010);
            AddVehicleComponent(nos, 1010);
        }
    }
    return 1;
}

public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, COLOR_ZIELONY, "Server using 'Need For Speed Nitro' By Ekwador");
    return 0;
}

stock Nitro(vehicleid)
{
   switch(GetVehicleModel(vehicleid))
   {
     case
          444, 581, 586, 481, 509, 446, 556, 443, 452, 453, 454, 472,
          473, 484, 493, 495, 462, 463, 468, 521, 522, 417, 425, 447,
          488, 497, 501, 548, 563, 406, 520, 539, 553, 557, 573, 460,
          464, 476, 511, 512, 577, 592, 471, 448, 461, 523, 510, 487,
          430, 465, 469, 513, 593, 419:
          return false ;
   }
   return true ;
}
Crйditos: Equador, editado por Caroline.



2Є auto - reparar:
pawn Код:
#include <a_samp>

public OnGameModeInit()
{
    SetTimer("Reparar", 1000, true);
    return 1;
}


forward Reparar(playerid);
public Reparar(playerid)
{
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
3 - Nгo possнvel(eu pelo menos nunca vн). sу em mod.

Espero ter ajudado vocк *-*
Reply


Messages In This Thread
[PEDIDOS] drift - by guilhermegtu - 18.09.2011, 15:34
Re: [PEDIDOS] drift - by Bruno Pereira - 18.09.2011, 15:37
Re: [PEDIDOS] drift - by RebeloX - 18.09.2011, 15:46
Re: [PEDIDOS] drift - by [O.z]Caroline - 18.09.2011, 16:16
Re: [PEDIDOS] drift - by guilhermegtu - 18.09.2011, 16:21
Re: [PEDIDOS] drift - by guilhermegtu - 18.09.2011, 16:29
Re: [PEDIDOS] drift - by [O.z]Caroline - 18.09.2011, 16:32
Re: [PEDIDOS] drift - by guilhermegtu - 18.09.2011, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)