/admin
#1

I want to make like /admins
SendClientMessage(playerid, COLOR_GRAD1, "Admin: %s, Level: %d", sendername,adminlevel);

But how do i do like i see the level of the admin ,, I know its %d but after %S it says "sendername" how should i type to see the admin level too ?
Reply
#2

pawn Код:
if(cmd = "/admins")
{
new lawl[256];
format(lawl,256, Admin:%s level:%d",sendername,adminlevel);
SendClientMessage(playerid, COLOR_LOL, lawl);
}
something like that
Reply
#3

Did but it didnt work (:
Reply
#4

What's your admin variable?
IE, PlayerInfo[playerid][AdminLevel].
Reply
#5

Код:
if(strcmp(cmd, "/admins", true) == 0)
	{
		SendClientMessage(playerid,GREEN,"Online Admins:");
		for(new i=0;i<MAX_PLAYERS;i++)
		{
		if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] >= 0);
 {
		GetPlayerName(i,string,sizeof(string));
		format(string,sizeof(string),"- %s (%d), Level: %d",string,i,PlayerInfo[i][pAdmin]);//name,id,level
		SendClientMessage(playerid,PURPLE,string);
		}
		}
		return 1;
	}
Reply
#6

Код:
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1338)
Reply
#7

Mine worked but whatever...
Reply
#8

Noone can help me (: ?

I typed instead of adminlevel, i typed pAdmin and IG it says "Admins:Marcus_Black, Level:129" , and im 1337 xD
Reply
#9

...just use my command
Reply
#10

(16981) : error 036: empty statement

What tha heck xD
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)