Nitro Script!
#1

Can somebody give me a script for nitro? I want a command /nitro, when someone type this get nitro in the can that is in and pay 1000$. thanks!!! is there any script?
Reply
#2

Try this.. Not tested:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new vehicleid;
    vehicleid = GetPlayerVehicleID(playerid);
   
    if (strcmp("/nitro", cmdtext, true, 10) == 0)
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFF0000FF,"You must be in a vehicle.");
        {
            if(GetPlayerMoney(playerid) <1000) return SendClientMessage(playerid,0xFF0000FF,"You need $1000 to buy nos.");
            {
                GivePlayerMoney(playerid, -1000); // -1000
                AddVehicleComponent(vehicleid, 1010); // 10x Nitro
                return 1;
            }
        }
    }
    return 0;
}
Reply
#3

Amazing! it works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)