/admin - 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 (
/showthread.php?tid=92052)
/admin -
MrRieTzzz - 18.08.2009
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 ?
Re: /admin -
Daem - 18.08.2009
pawn Код:
if(cmd = "/admins")
{
new lawl[256];
format(lawl,256, Admin:%s level:%d",sendername,adminlevel);
SendClientMessage(playerid, COLOR_LOL, lawl);
}
something like that
Re: /admin -
MrRieTzzz - 18.08.2009
Did but it didnt work (:
Re: /admin -
Lewwy - 18.08.2009
What's your admin variable?
IE, PlayerInfo[playerid][AdminLevel].
Re: /admin -
craponnaruto - 18.08.2009
Код:
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;
}
Re: /admin -
MrRieTzzz - 18.08.2009
Код:
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1338)
Re: /admin -
craponnaruto - 18.08.2009
Mine worked but whatever...
Re: /admin -
MrRieTzzz - 18.08.2009
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
Re: /admin -
craponnaruto - 18.08.2009
...just use my command
Re: /admin -
MrRieTzzz - 18.08.2009
(16981) : error 036: empty statement
What tha heck xD