Again problem
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PlayerInfo[playerid][pAdmin] == 4)
    {
        new pName[MAX_PLAYER_NAME], String[128];
        GetPlayerName(playerid, pName, 24);
        format(String, sizeof(String), "{FF3333}[Owner]{33CCFF}%s: %s", pName, text);
        SendClientMessageToAll(-1,String);
        return 0;
    }
    else if(PlayerInfo[playerid][pAdmin] == 3)
    {
        new pName[MAX_PLAYER_NAME], String[128];
        GetPlayerName(playerid, pName, 24);
        format(String, sizeof(String), "{33AA33}[Head-Admin]{33CCFF}%s: %s", pName, text);
        SendClientMessageToAll(-1,String);
        return 0;
    }
    else if(PlayerInfo[playerid][pAdmin] == 2)
    {
        new pName[MAX_PLAYER_NAME], String[128];
        GetPlayerName(playerid, pName, 24);
        format(String, sizeof(String), "{0088FF}[Admin]{9ACD32}%s: %s", pName, text);
        SendClientMessageToAll(-1,String);
        return 0;
    }
    else if(PlayerInfo[playerid][pAdmin] == 1)
    {
        new pName[MAX_PLAYER_NAME], String[128];
        GetPlayerName(playerid, pName, 24);
        format(String, sizeof(String), "{FF9900}[Moderator]{AFAFAF}%s: %s", pName, text);
        SendClientMessageToAll(-1,String);
        return 0;
    }
    else if(PlayerInfo[playerid][pAdmin] == 0)
    {
        new pName[MAX_PLAYER_NAME], String[128];
        GetPlayerName(playerid, pName, 24);
        format(String, sizeof(String), "{E100E1}[Member]%s{AFAFAF}:%s", pName, text);
        SendClientMessageToAll(-1,String);
    }
    return 0;
}
return 1; became return 0;
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)