How to make this cmd?
#1

ok i want a cmd /grall and it will apply gold rims to every car thats currently in the game faction,families, player cars ALL!

using this

if (PlayerInfo[playerid][pAdmin] >= 1337)

please help me asap
Reply
#2

pawn Код:
// On top of your script, under includes

native IsValidVehicle(vehicleid);

CMD:grall(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1337)
        for(new v; v<MAX_VEHICLES; v++)
            if(IsValidVehicle(v))
                AddVehicleComponent(v, 1074);
    return 1;
}
Now, I don't know exactly what RIMS you need. You can change 1074 to whatever wheels you need. Here's a complete list of wheels:

https://sampwiki.blast.hk/wiki/Car_Component_ID
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)