11.03.2013, 12:57
Quote:
CMD:ipcheck(playerid, params[]) { MOD_CHECK; { new string[128], giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOUR_RED, "USAGE: /ipcheck [playerid]"); if(giveplayerid == INVALID_PLAYER_ID) return 1; if(IsPlayerConnected(giveplayerid)) { new playerip[32]; GetPlayerIp(giveplayerid, playerip, sizeof(playerip)); format(string, sizeof(string), "(ID: %d) - (Name: %s) - (IP: %s)", giveplayerid, ReturnName(giveplayerid), playerip); SendClientMessage(playerid, COLOUR_RED, string); } else SendClientMessage(playerid, COLOUR_RED, "Invalid player specified."); } return 1; } |
Im really having problems doing that Can someone please help?
Thank you!