EMERGENCY [NEED A QUICK 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: EMERGENCY [NEED A QUICK HELP] (
/showthread.php?tid=224911)
EMERGENCY [NEED A QUICK HELP] -
Medal Of Honor team - 12.02.2011
How will i make an /admins system? This are some code
adminlevel[playerid]
if(adminlevel[playerid] == 4)
Re: EMERGENCY [NEED A QUICK HELP] -
Hiddos - 12.02.2011
Loop through all players, check if they're admin ( if(adminlevel[playerid] >= 1) ) and send a client message if they are
Re: EMERGENCY [NEED A QUICK HELP] -
Medal Of Honor team - 12.02.2011
yup i know that. But it's not working
Re: EMERGENCY [NEED A QUICK HELP] -
Hiddos - 12.02.2011
Post the code, we can't point the error out without it ^^
AW: EMERGENCY [NEED A QUICK HELP] -
.LaaRs. - 12.02.2011
Hey i wrote it in ur guestbook

should work
Re: EMERGENCY [NEED A QUICK HELP] -
Mean - 12.02.2011
ZCMD
pawn Код:
CMD:admins( playerid, params[ ] )
{
new c = 0;
SendClientMessage( playerid, 0xAAAAAA, "Current administrators online: " );
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( adminlevel[ i ] >= 1 )
{
c++;
new string[ 128 ];
new pName[ MAX_PLAYER_NAME ];
GetPlayerName( i, pName, sizeof pName );
format( string, sizeof string, "Level: %d, Admin: %s", adminlevel[ i ], pName );
SendClientMessage( playerid, 0xAAAAAA, string );
}
}
if( c == 0 ) SendClientMessage( playerid, 0xAAAAAA, "No administrators online" );
return 1;
}
Untested.
EDIT: I would really like to know if it did work...