20.04.2013, 12:45
Hi
Can someone tell me how to fix this:
Why it show me text twice:
I want that it will show me just (RCON ADMIN)...
PICTURE:

CODE:
Can someone tell me how to fix this:
Why it show me text twice:
I want that it will show me just (RCON ADMIN)...
PICTURE:

CODE:
pawn Код:
public OnPlayerText(playerid,text[])
{
if(IsPlayerAdmin(playerid))
{
new string[256], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{ff0000a7}(RCON Admin){FFFF00}(%i):{FFFFFF} %s",playerid, text);
SendPlayerMessageToAll(playerid, string);
}
else
{
new string[256], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{FFFF00}(%i):{FFFFFF} %s",playerid, text);
SendPlayerMessageToAll(playerid,string);
}
return 1;
}