Can u help me ? - 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)
+--- Thread: Can u help me ? (
/showthread.php?tid=336116)
Can u help me ? -
Laure - 21.04.2012
Can i get a small help i had Administrator title to every admins while talking in OOC Channel like if i am admin and i say hey then like this (( Admin Imperor:Hey )) But i want every admins name sud be displayed as their post like if i am a head admin then it should say (( Head Admin Imperor: Hey )).I am Confused in [pAdmin] == and [pAdmin] >=
So help me heres the Code:
Код:
else if(PlayerInfo[playerid][pAdmin] == 1337)
{
new string[128];
format(string, sizeof(string), "(( {33CCFF}Head Admin{E0FFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
OOCOff(COLOR_OOC,string);
}
Re: Can u help me ? -
Laure - 21.04.2012
OMG NoOne For Help?
Re: Can u help me ? -
[MG]Dimi - 21.04.2012
Do it like this
pawn Код:
new rank[30];
switch(PlayerInfo[playerid][pAdmin])
{
case 1: rank = "Moderator"; //if he is level 1
case 2: rank = "Head-Moderator"; //if he is level 2
// ...
case 1337: rank = "Head-Administrator"; //if he is level 1337
// you just put rnk of each level inside " "
}
new string[128];
format(string, sizeof(string), "(( {33CCFF}%s{E0FFFF} %s: %s ))", rank, GetPlayerNameEx(playerid), params);
OOCOff(COLOR_OOC,string);