Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (!strcmp(innerCmd, "kick"))
- {
- if (sval1[0] == 0)
- return true;
- sval1[MOBNAME_LENGTH - 1] = 0;
- sval1[MOBNAME_LENGTH - 2] = 0;
- int client = NativeFunctions::getUserByName(sval1);
- if (client == 0)
- {
- NativeFunctions::sendClientMessage(client, "Personagem não está online!");
- return true;
- }
- if (user[client].Mode != USER_PLAY)
- return true;
- if (mob[client].Mob.CurrentStatus.Level >= mob[client].Mob.CurrentStatus.Level)
- {
- NativeFunctions::sendClientMessage(client, "Can't kick equal or high level admin");
- return true;
- }
- NativeFunctions::charLogOut(client);
- NativeFunctions::closeUser(client);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement