How to fix it . - 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: How to fix it . (
/showthread.php?tid=170007)
How to fix it . -
iRana - 21.08.2010
Hi guys I need help in /n I make following cmds . But If i am admin lvl > 1 it shows my /n tag as [player] but i explain [Administrator] ? WTF .
Код:
if (PlayerInfo[playerid][pConnectSeconds] >= 0 && PlayerInfo[playerid][pConnectSeconds] <= 90000)
{
format(string, sizeof(string), "[Newbie] %s: %s", sendername, result);
}
else if (PlayerInfo[playerid][pConnectSeconds] > 90000)
{
format(string, sizeof(string), "[Player] %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pHelper] == 1 || PlayerInfo[playerid][pConnectSeconds] >= 0)
{
format(string, sizeof(string), "[Helper] %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pConnectSeconds] >= 0)
{
format(string, sizeof(string), "[Administrator] %s: %s", sendername, result);
}
Re: How to fix it . -
Dudits - 21.08.2010
Try this one.
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pConnectSeconds] >= 0)
{
format(string, sizeof(string), "[Administrator] %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pHelper] == 1 || PlayerInfo[playerid][pConnectSeconds] >= 0)
{
format(string, sizeof(string), "[Helper] %s: %s", sendername, result);
}
else if (PlayerInfo[playerid][pConnectSeconds] > 90000)
{
format(string, sizeof(string), "[Player] %s: %s", sendername, result);
}
else if (PlayerInfo[playerid][pConnectSeconds] >= 0 && PlayerInfo[playerid][pConnectSeconds] <= 90000)
{
format(string, sizeof(string), "[Newbie] %s: %s", sendername, result);
}