Saving system
#4

so you want this:
pawn Код:
CMD:ip(playerid, params[]) {
    if (pInfo[playerid][pAdmin] >= 3 || IsPlayerAdmin(playerid)) {
        new id;
        if(sscanf(params, "i",id)) return SendClientMessage(playerid, COLOR_RED,"USAGE: /ip <playerid>");
        if (!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "ERROR: Player is not connected.");
        if (IsPlayerConnected(id)) {
            new PlayerName[MAX_PLAYER_NAME];
            GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
            new GPlayerName[MAX_PLAYER_NAME];
            GetPlayerName(id, GPlayerName, sizeof(GPlayerName));
            new tmpIP[16];
            GetPlayerIp(playerid,tmpIP,sizeof(tmpIP));
            format(szString, sizeof(szString), "* %s's (%d) IP: %s", GPlayerName, id, tmpIP);
            SendClientMessage(playerid, COLOR_GREEN, szString);
        }
    }
    else {
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Saving system - by _Khaled_ - 04.09.2012, 12:51
Re: Saving system - by ThePrograme - 04.09.2012, 12:57
Re: Saving system - by _Khaled_ - 04.09.2012, 13:06
Re: Saving system - by ThePrograme - 04.09.2012, 13:11
Re: Saving system - by _Khaled_ - 06.09.2012, 01:53
Re: Saving system - by Jermi - 06.09.2012, 03:57
Re: Saving system - by _Khaled_ - 06.09.2012, 11:58
Re: Saving system - by _Khaled_ - 07.09.2012, 02:45

Forum Jump:


Users browsing this thread: 1 Guest(s)