Scripting Help
#4

pawn Код:
if (PlayerInfo[playerid][pAdmin] > 0)
{
    if(PlayerInfo[playerid][pAdmin] == 1)
    {
        SendClientMessageEx(playerid, COLOR_WHITE,"SERVER: You are logged in as a Moderator.");
        format( string2, sizeof( string2 ), "SERVER: %s[%s] has logged in as a Moderator.", GetPlayerNameEx( playerid ), ARankC(playerid));
    }
    else

    {
        format(string2, sizeof(string2), "SERVER: You are logged in as a Level %d[%s] Admin.",PlayerInfo[playerid][pAdmin],ARankC(playerid));
        SendClientMessageEx(playerid, COLOR_WHITE,string2);
        format( string2, sizeof( string2 ), "SERVER: %s[%s] has logged in.",GetPlayerNameEx( playerid ),PlayerInfo[playerid][pAdmin],ARankC(playerid));
    }

    foreach(Player, i)
    {
        if( PlayerInfo[i][pAdmin] >= 1337 )
        {
            if(PlayerInfo[i][pAdmin] >= PlayerInfo[playerid][pAdmin]) SendClientMessageEx(i, COLOR_WHITE, string2);
        }
    }
}
Reply


Messages In This Thread
Scripting Help - by Akira297 - 07.06.2013, 16:39
Re: Scripting Help - by Kyle - 07.06.2013, 17:53
Re: Scripting Help - by Akira297 - 07.06.2013, 18:00
Re: Scripting Help - by Pottus - 07.06.2013, 18:14

Forum Jump:


Users browsing this thread: 3 Guest(s)