/admin cmd
#1

Yo I have part of my /a chat..

But it goes wrong to me, I need some help.

pawn Код:
new atext[60];
if(PlayerInfo[playerid][pAdmin] == 1){ atext = "Moderator/Trail Admin(1)"; }
if(PlayerInfo[playerid][pAdmin] == 2){ atext = "Junior Admin(2)"; }
if(PlayerInfo[playerid][pAdmin] == 3){ atext = "General Admin(3)"; }
if(PlayerInfo[playerid][pAdmin] == 4){ atext = "Head Admin(4)"; }
if(PlayerInfo[playerid][pAdmin] == 1337){ atext = "Elite Admin(1337)"; }
if(PlayerInfo[playerid][pAdmin] == 1337) { atext = "Server Scripter(1337)"; }
if(PlayerInfo[playerid][pAdmin] == 1338) { atext = "Server Owner(1338)"; }
format(string, sizeof(string), "%d %s: %s", atext, sendername, result);
It doesnt show it correctly..
I want when admin do /a, It will show him "Server Owner(133) Taz86: His text here..
Can anyone help?
Reply
#2

Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
new atext[60];
if(PlayerInfo[playerid][pAdmin] == 1){ atext = "Moderator/Trail Admin(1)"; }
if(PlayerInfo[playerid][pAdmin] == 2){ atext = "Junior Admin(2)"; }
if(PlayerInfo[playerid][pAdmin] == 3){ atext = "General Admin(3)"; }
if(PlayerInfo[playerid][pAdmin] == 4){ atext = "Head Admin(4)"; }
if(PlayerInfo[playerid][pAdmin] == 1337){ atext = "Elite Admin(1337)"; }
if(PlayerInfo[playerid][pAdmin] == 1337) { atext = "Server Scripter(1337)"; }
if(PlayerInfo[playerid][pAdmin] == 1338) { atext = "Server Owner(1338)"; }
format(string, sizeof(string), "%s %s: %s", atext, sendername, result);
use this
Reply
#3

if it doesn't work use this
Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
new atext[64];
if(PlayerInfo[playerid][pAdmin] == 1){ atext = "Moderator/Trail Admin(1)"; }
else if(PlayerInfo[playerid][pAdmin] == 2){ atext = "Junior Admin(2)"; }
else if(PlayerInfo[playerid][pAdmin] == 3){ atext = "General Admin(3)"; }
else if(PlayerInfo[playerid][pAdmin] == 4){ atext = "Head Admin(4)"; }
else if(PlayerInfo[playerid][pAdmin] == 1337){ atext = "Elite Admin(1337)"; }
else if(PlayerInfo[playerid][pAdmin] == 1337) { atext = "Server Scripter(1337)"; }
else if(PlayerInfo[playerid][pAdmin] == 1338) { atext = "Server Owner(1338)"; }
format(string, sizeof(string), "%s %s: %s", atext, sendername, result);
Reply
#4

Quote:
Originally Posted by akis_tze
Посмотреть сообщение
Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
new atext[60];
if(PlayerInfo[playerid][pAdmin] == 1){ atext = "Moderator/Trail Admin(1)"; }
if(PlayerInfo[playerid][pAdmin] == 2){ atext = "Junior Admin(2)"; }
if(PlayerInfo[playerid][pAdmin] == 3){ atext = "General Admin(3)"; }
if(PlayerInfo[playerid][pAdmin] == 4){ atext = "Head Admin(4)"; }
if(PlayerInfo[playerid][pAdmin] == 1337){ atext = "Elite Admin(1337)"; }
if(PlayerInfo[playerid][pAdmin] == 1337) { atext = "Server Scripter(1337)"; }
if(PlayerInfo[playerid][pAdmin] == 1338) { atext = "Server Owner(1338)"; }
format(string, sizeof(string), "%s %s: %s", atext, sendername, result);
use this
Thanks alot. Worked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)