SA-MP Forums Archive
Admin script help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Admin script help (/showthread.php?tid=113095)



Admin script help - sggassasin - 12.12.2009

hey there i need a way so i can get

all levels from level 5 to 1 to do this command ...



Код:
if (strcmp(cmd, "/openadmin", true) ==0 )
	{

	 if(PlayerInfo[playerid][Admin] == 5 )
	    {
			  SetTimer("gateclosetime",3000,false);
  			  MoveObject(admingate1, 57.859196, 1523.563721, 14.677603, 2.00);
			  MoveObject(admingate2, -48.196167, 1534.187256, 14.523392, 2.00);
        SendClientMessage(playerid, COLOR_GRAD1, "You Have Open The Gates To Heaven ");
			}
	else
	{
  SendClientMessage(playerid, COLOR_GRAD1, "You Are Not Admin");
	}
	return 1;
	}



Re: Admin script help - RyDeR` - 12.12.2009

Код:
if(PlayerInfo[playerid][Admin] >=1 && PlayerInfo[playerid][Admin] <=5 )



Re: Admin script help - DeathOnaStick - 12.12.2009

Quote:
Originally Posted by » RэРиR «
Код:
if(PlayerInfo[playerid][Admin] >1 && PlayerInfo[playerid][Admin] <5 )
1 and 5 wont be included.
If you want them to be use this:
pawn Код:
if(PlayerInfo[playerid][Admin] >=1 && PlayerInfo[playerid][Admin] <=5 )



Re: Admin script help - RyDeR` - 12.12.2009

Damn, to fast :P
Changed.


Re: Admin script help - sggassasin - 12.12.2009

ok thx that helped could u do me 1 more thing i need a simple give admin command useing the PlayerInfo[playerid][Admin]. could you help me out thx for ur time