Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IRCCMD:getip(botid, channel[], user[], host[], params[])
- {
- if (IRC_IsHalfop(botid, channel, user))
- {
- new player1 = strval(params);
- if(isnull(params)) return IRC_GroupSay(gGroupID, channel, "Usge: !getip id");
- if (IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
- {
- new playername[MAX_PLAYER_NAME], string[128], tmp3[50];
- GetPlayerIp(player1, tmp3, 50);
- GetPlayerName(player1, playername, sizeof(playername));
- format(string, sizeof(string), "Name : %s ID: %d IP: %s", PlayerName2(player1), player1, tmp3);
- IRC_GroupSay(gGroupID, channel, string);
- } else return IRC_GroupSay(gGroupID, channel, "ERROR: Player is not connected");
- } else return IRC_GroupSay(gGroupID, channel, "ERROR: You need to be HalfOp to use this Command.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement