Unlimited Nitros....Is this possible?
#4

Quote:
Originally Posted by Cank
Посмотреть сообщение
it's possible with a timer:

pawn Код:
forward nitro();
public nitro()
{
       for(new i=0; i<MAX_PLAYERS; i++)
       {
            if(IsPlayerConnected(playerid))
            {
                  if(IsPlayerInAnyVehicle(playerid))
                  {
                         AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); //nitro
                  }
             }
        }
        return 1;
}

//OnGameModeInit

SetTimer("nitro", 2000, 1);
//or you do it like spaZ
You're pretty much doing 3 connection checks + 2 vehicle checks right there lol.

Having it on a timer would be the worst way, as every time you use it a new bottle would be applied to your vehicle. Which would cut the nos off.

You'd have to press fire every 2 seconds to use it lol.


EDIT: As for the other poster, its not AS bad i guess. But you're still doing 2 connection checks, Not checking if the player is the driver, and not seeing if its a safe vehicle to apply nos on (Is this still a problem in 0.3b? Or will it through a warning?). I have no idea why you're even checking the oldkeys at all .
Reply


Messages In This Thread
Unlimited Nitros....Is this possible? - by r3k1lLz_ - 03.09.2010, 11:26
Re: Unlimited Nitros....Is this possible? - by SpaZ (Ed) - 03.09.2010, 11:34
Re: Unlimited Nitros....Is this possible? - by Cank - 03.09.2010, 11:40
Re: Unlimited Nitros....Is this possible? - by Kyosaur - 03.09.2010, 11:46
Re: Unlimited Nitros....Is this possible? - by [HiC]TheKiller - 03.09.2010, 11:56
Re: Unlimited Nitros....Is this possible? - by Kyosaur - 03.09.2010, 12:00
Re: Unlimited Nitros....Is this possible? - by [HiC]TheKiller - 03.09.2010, 12:05
Re: Unlimited Nitros....Is this possible? - by Kyosaur - 03.09.2010, 12:11
Re: Unlimited Nitros....Is this possible? - by dax123 - 03.09.2010, 12:45
Re: Unlimited Nitros....Is this possible? - by Mike Garber - 03.09.2010, 13:00

Forum Jump:


Users browsing this thread: 2 Guest(s)