Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (!strcmp(innerCmd, "+ip"))
- {
- char name[16] = { 0, };
- if (sscanf_s(innerMsg, "%15s", name, _countof(name)))
- {
- auto status = NativeFunctions::getUserByName(name);
- if (status >= 0)
- {
- NativeFunctions::sendClientMessage(client, Functions::stringFormat("Player: [%s] IP: [%d]", name, user->IP));
- return true;
- }
- else
- {
- NativeFunctions::sendClientMessage(client, "Jogador não esta online.");
- return true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement