Jump to content

[FS]Nitro Infinit


Recommended Posts

Acest filterscript este foarte bun daca ai un server de stunt sau de racing si anume iti da nitro infinit (NOS).

Pentru a crea acest plugin trebuie sa intrati in pawno,sa deschideti un nou proiect si sa puneti codul urmator:

#include <a_samp>

/*------------------------------[ Infinitife Nitro ]-----------------------------------

        This filterscript is made by SaSuKe aka BreaKer
        Vehicle with nos check made by BreaKer
     
        How does it work: simply press and hold the left mousebutton (or any other key you
        defined for start nos and keep the fun going 

---------------------------------------------------------------------------------------*/

public OnFilterscriptInit()
{
        print("\n-----------------------------------");
        print("Infinite nitro by SaSuKe aka BreaKer"); //me!
        print("-----------------------------------\n");
        SetTimer("NitroReset", 3000, 1);
        return 1;
}

forward NitroReset();
public NitroReset()
{
        for(new i = 0; i<MAX_PLAYERS; i++)
        {
            if(!IsPlayerInInvalidNosVehicle(i,GetPlayerVehicleID(i))) //ty @ [fackin'] luke //notice the "!"
                {
                    new vehicle = GetPlayerVehicleID(i);
                    AddVehicleComponent(vehicle, 1010);
                }
        }
}
//-------------------------[ IsPlayerInValidNosVehicle ]-------------------------------
IsPlayerInInvalidNosVehicle(playerid,vehicleid)
{
    #define MAX_INVALID_NOS_VEHICLES 29

    new InvalidNosVehicles[MAX_INVALID_NOS_VEHICLES] =
    {
        581,523,462,521,463,522,461,448,468,586,
        509,481,510,472,473,493,595,484,430,453,
        452,446,454,590,569,537,538,570,449
    };

    vehicleid = GetPlayerVehicleID(playerid);

    if(IsPlayerInVehicle(playerid,vehicleid))
    {
                for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++)
                {
                    if(GetVehicleModel(vehicleid) == InvalidNosVehicles[i])
                    {
                        return true;
                    }
                }
    }
    return false;
}
// end of it!
Apoi apasati F5.In folderul respectiv (Cel cu pawno) se vor crea 2 fisiere unul .amx si unul .pwn , pe care le redenumiti..de ex NOS.amx si NOS.pwn.Mai departe...Puneti aceste 2 fisiere in folderul filterscripts din sa-mp , apoi deschideti server.cfg si scrieti in dreptul la filterscripts numele fisierului de exmplu:
filterscripts admin warn NOS

Bucurati-va! ;)

845819803.png

default.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.