Nos remover - 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: Nos remover (
/showthread.php?tid=488764)
Nos remover -
George0305 - 19.01.2014
Hello! So,what i want to make is a system that will remove from the shop the nos,so no car can have it,but also to make a command for admins to mount it.Thanks! +rep.
Re: Nos remover -
Excelize - 19.01.2014
Uh, since it's an actual GTA Code, we can't edit it. You can fence off the whole tuning shop but that wouldn't make a lot of sence..
If you want the admin mount system, just add this code to your admin system, change it to your admin leveling system.
Код:
if(strcmp(cmd, "/nos", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1337)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, " You are not authorized to use that command! !");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Nos installed from car!");
}
}
return 1;
}
I hope i could help! If you need more assistance, PM me.
Good luck!