Again problem
#1


now have problem with member here is code

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

Reply


Messages In This Thread
Again problem - by rumen98 - 25.06.2012, 10:30
Re: Again problem - by JaKe Elite - 25.06.2012, 10:32
Re: Again problem - by rumen98 - 25.06.2012, 10:33

Forum Jump:


Users browsing this thread: 1 Guest(s)