GetPlayerName (Im a failure)Rep+ For help
#1

PHP код:
public OnPlayerText(playeridtext[])
{
    new 
string[128],pName[MAX_PLAYER_NAME];
    if(
PlayerInfo[playerid][pAdmin] < 6)
     
GetPlayerName(playerid,pName,sizeof(pName));
    
format(string,sizeof(string),""COL_RED"[Server Owner]"COL_WHITE" %s: %s",pName,text);
    
SendClientMessageToAll(COLOR_WHITE,string);
    return 
0;

Pretty much is the player is server owner ( admin level 6 ) I want it to say
[php[Server Owner] %s[Playername]:%s[text][/php] but the issue is when I go ingame and chat it just comes up as

[Server Owner]: Hi [For example]

Rep+ For help
Reply


Messages In This Thread
GetPlayerName (Im a failure)Rep+ For help - by Azzeto - 15.11.2011, 19:22
Re: GetPlayerName (Im a failure)Rep+ For help - by [MG]Dimi - 15.11.2011, 19:26
Re: GetPlayerName (Im a failure)Rep+ For help - by [NoV]LaZ - 15.11.2011, 19:28
Re: GetPlayerName (Im a failure)Rep+ For help - by Azzeto - 15.11.2011, 19:31
Re: GetPlayerName (Im a failure)Rep+ For help - by fiki574 - 15.11.2011, 19:32
Re: GetPlayerName (Im a failure)Rep+ For help - by [MG]Dimi - 15.11.2011, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)