Big Problem
#1

Hello everyone I have a big problem shtot then began to write my name goes double here's the code I tried to do Prefix but since I write a sample test shows [owner] Rumen_Dimitrov: test and below Rumen_Dimitrov: test who can help me
I would be grateful if you help me

PHP код:
public OnPlayerText(playeridtext[])
{
    if(
PlayerInfo[playerid][pAdmin] == 3)
    {
        new 
pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{FF3333}[Owner]";
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "%s{AFAFAF}%s: %s"PrefixpNametext);
        
SendClientMessageToAll(-1,String);
        }
    if(
PlayerInfo[playerid][pAdmin] == 2)
    {
        new 
pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{33AA33}[Head-Admin]";
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "%s{AFAFAF}%s: %s"PrefixpNametext);
        
SendClientMessageToAll(-1,String);
        }
    if(
PlayerInfo[playerid][pAdmin] == 1)
    {
        new 
pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{FF9900}[Moderator]";
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "%s{AFAFAF}%s: %s"PrefixpNametext);
        
SendClientMessageToAll(-1,String);
        }
    if(
PlayerInfo[playerid][pAdmin] == 0)
    {
        new 
pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{E100E1}[Member]";
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "%s{AFAFAF}%s: %s"PrefixpNametext);
        
SendClientMessageToAll(-1,String);
        }
    return 
1;

Translated by ****** Translator
Reply


Messages In This Thread
Big Problem - by rumen98 - 25.06.2012, 09:14
Re: Big Problem - by Grand_Micha - 25.06.2012, 09:20
Re: Big Problem - by rumen98 - 25.06.2012, 09:23
Re: Big Problem - by rumen98 - 25.06.2012, 09:32
Re: Big Problem - by Grand_Micha - 25.06.2012, 09:39
Re: Big Problem - by JaKe Elite - 25.06.2012, 09:39

Forum Jump:


Users browsing this thread: 3 Guest(s)