Admin script help
#1

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;
	}
Reply
#2

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

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 )
Reply
#4

Damn, to fast :P
Changed.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)