Ultimate Nitro (automatic nitro) work with key
#1

hi guys, i need some help.
You can build me a code, when you press ctrl extended nitro works and when the ctrl nitro Ozbimat missing work.?
But only when users buy the nitro automatic command - / buyautonitro .
And will be also possible to sell it - /sellautonitro.

I do not know how to do it, and I'm really glad if you can help me soon.
Reply
#2

up plsss
Reply
#3

1-Don't bump so quickly, you have to wait 48 hours after the last reply!
2-Read the rules: 7.If you are requesting a script, post in the Script Request Thread

-Enough said
Reply
#4

forward InfiniteNitro();
new bool:InSpawn[MAX_PLAYERS];
public OnGameModeInit()
{
SetTimer("InfiniteNitro",2000,1);
return 1;
}
public InfiniteNitro()
{
new vehicleid;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerState(i)==2)
{
vehicleid= GetPlayerVehicleID(i);
if(CheckVehicle(vehicleid))
AddVehicleComponent(vehicleid,1010);
}
}
}
return 0;
}
stock CheckVehicle(vehicleid)
{
#define MAX_INVALID_NOS_VEHICLES 13

new InvalidNOSVehicles[MAX_INVALID_NOS_VEHICLES] =
{
522,481,441,468,448,446,513,521,510,430,520,476,46 3
};

for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++)
{
if(GetVehicleModel(vehicleid) == InvalidNOSVehicles[i]) return false;
}
return true;
}
public OnPlayerSpawn(playerid)
{
InSpawn[playerid] = false;
return 1;
}

how i do the command /buyautoniro to buy the autoniro.
Reply
#5

uppp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)