Remake (Connect message)
#4

Ohh srry try this:
pawn Код:
public OnPlayerConnect(playerid)
{
    new servername[25], string[128];
    new pName2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName2, MAX_PLAYER_NAME);
    GetServerVarAsString("hostname", servername, sizeof(servername));
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerAdmin(i))
        {
            format(string, sizeof(string), "%s(%d) Has Joined %s. (IP: %s)", pName2, playerid, servername, PlayerIP(playerid));
            SendClientMessage(i, 0, string);
            SendDeathMessage(playerid, INVALID_PLAYER_ID, 200);
        }
        else
        {
            format(string, sizeof(string), "%s(%d) Has Joined %s.", pName2, playerid, servername);
            SendClientMessage(i, 0, string);
            SendDeathMessage(playerid, INVALID_PLAYER_ID, 200);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Remake (Connect message) - by Unknown123 - 05.03.2011, 14:49
Re: Remake (Connect message) - by HyperZ - 05.03.2011, 15:31
Re: Remake (Connect message) - by Unknown123 - 05.03.2011, 15:37
Re: Remake (Connect message) - by HyperZ - 05.03.2011, 15:44
Re: Remake (Connect message) - by Unknown123 - 05.03.2011, 15:49
Re: Remake (Connect message) - by HyperZ - 05.03.2011, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)