Untitled

 avatar
user_5298971
plain_text
a year ago
555 B
4
Indexable
Never
public OnPlayerConnect(playerid) {
    new name[MAX_PLAYER_NAME];
    new playerip[32];
    new strconnect[128];
    GetPlayerIp(playerid, playerip, sizeof(playerip));
    GetPlayerName(playerid, name, sizeof(name));
    format( strconnect, sizeof( strconnect ), "{ff5f00}[Login]{5fffff} %s | %s{ffffff} - {ff005f}ID: %d Dang Tham Gia May Chu Hau-DZ..", name, playerip, playerid);
    foreach(new i: Player)
    {
        if(PlayerInfo[i][pAdmin] >= 2)
        {
            SendClientMessageEx(i,COLOR_LIGHTBLUE, strconnect);
        }
    }