Nos remover
#1

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.
Reply
#2

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)