



stock bool: IsPlayerLoggedIn(playerid)
{
return (GetPVarInt(playerid, "gadmin_LoginStatus") != 2) ? (true) : (false);
}
stock bool: IsPlayerGuest(playerid)
{
return (GetPVarInt(playerid, "gadmin_LoginStatus") == 2) ? (true) : (false);
}
forward OnPlayerLogin(playerid, bool: guest);
forward OnPlayerRegister(playerid);
CMD:admins(playerid, params[])
{
new string[128], bool:count = false, rank[35], status[15];
SendClientMessage(playerid, COLOR_ORANGE_RED, " ");
LOOP_PLAYERS(i)
{
if(IsPlayerHAGAdmin(i) || IsPlayerAdmin(i))
{
if(! count) SendClientMessage(playerid, COLOR_ORANGE_RED, "- Online Administrators -");
if(GetPVarType(playerid, "HAGAdmin_Onduty") != PLAYER_VARTYPE_NONE) status = "On Duty";
else status = "Playing";
if(! strcmp(ReturnPlayerName(i), "Gammix")) rank = "Server Owner & Developer";
else if(! strcmp(ReturnPlayerName(i), "Mitchell Weston")) rank = "Server Owner";
else if(IsPlayerAdmin(i)) rank = "RCON Admin";
else
{
switch(GetPlayerHAGAdminLevel(i))
{
case 1: rank = "Trial Admin";
case 2: rank = "Junior Admin";
case 3: rank = "Senior Admin";
case 4: rank = "Lead Admin";
case 5: rank = "Master Admin";
default: rank = "Server Manager";
}
}
format(string, sizeof(string), "%s [%i] | Rank: %s | Level %i | Status: %s", ReturnPlayerName(i), i, rank, GetPlayerHAGAdminLevel(i), status);
SendClientMessage(playerid, COLOR_ORANGE_RED, string);
count = true;
}
}
if(! count) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: No admin on-duty currently.");
return 1;
}
|
You are funny. But nice script I guess! >_>
Код:
CMD:admins(playerid, params[])
{
new string[128], bool:count = false, rank[35], status[15];
SendClientMessage(playerid, COLOR_ORANGE_RED, " ");
LOOP_PLAYERS(i)
{
if(IsPlayerHAGAdmin(i) || IsPlayerAdmin(i))
{
if(! count) SendClientMessage(playerid, COLOR_ORANGE_RED, "- Online Administrators -");
if(GetPVarType(playerid, "HAGAdmin_Onduty") != PLAYER_VARTYPE_NONE) status = "On Duty";
else status = "Playing";
if(! strcmp(ReturnPlayerName(i), "Gammix")) rank = "Server Owner & Developer";
else if(! strcmp(ReturnPlayerName(i), "Mitchell Weston")) rank = "Server Owner";
else if(IsPlayerAdmin(i)) rank = "RCON Admin";
else
{
switch(GetPlayerHAGAdminLevel(i))
{
case 1: rank = "Trial Admin";
case 2: rank = "Junior Admin";
case 3: rank = "Senior Admin";
case 4: rank = "Lead Admin";
case 5: rank = "Master Admin";
default: rank = "Server Manager";
}
}
format(string, sizeof(string), "%s [%i] | Rank: %s | Level %i | Status: %s", ReturnPlayerName(i), i, rank, GetPlayerHAGAdminLevel(i), status);
SendClientMessage(playerid, COLOR_ORANGE_RED, string);
count = true;
}
}
if(! count) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: No admin on-duty currently.");
return 1;
}
|
|
Certainly yes, you can replace it with Redrex as well as with world war III.
Don't ask me to do so because i don't have any client files with me anymore. |
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(936) : error 017: undefined symbol "db_get_field_int" D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1220) : warning 203: symbol is never used: "len" D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 017: undefined symbol "bufferhash" D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : warning 215: expression has no effect D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 001: expected token: ";", but found "]" D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 029: invalid expression, assumed zero D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
|
when i compiled
there are many error: Код:
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(936) : error 017: undefined symbol "db_get_field_int" D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1220) : warning 203: symbol is never used: "len" D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 017: undefined symbol "bufferhash" D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : warning 215: expression has no effect D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 001: expected token: ";", but found "]" D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : error 029: invalid expression, assumed zero D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(1419) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
|
Thats because you are using old version of SAMP and easydb.
Download SAMP 0.3.7 R2-1 package and easydb.inc build 3 or 4. And then compile. |
#if !defined DB_SYNCHRONOUS
#define DB_SYNCHRONOUS (false)
#endif
D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\wwi test\WORLD WAR III (build 1)\pawno\include\easydb.inc(936) : error 017: undefined symbol "db_get_field_int"