How to make this cmd? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make this cmd? (
/showthread.php?tid=380067)
How to make this cmd? -
NinjaChicken - 24.09.2012
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
Re: How to make this cmd? -
antonio112 - 24.09.2012
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