Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. else if (!strcmp(innerCmd, "kick"))
  2. {
  3. if (sval1[0] == 0)
  4. return true;
  5.  
  6. sval1[MOBNAME_LENGTH - 1] = 0;
  7. sval1[MOBNAME_LENGTH - 2] = 0;
  8.  
  9. int client = NativeFunctions::getUserByName(sval1);
  10.  
  11. if (client == 0)
  12. {
  13. NativeFunctions::sendClientMessage(client, "Personagem não está online!");
  14. return true;
  15. }
  16.  
  17. if (user[client].Mode != USER_PLAY)
  18. return true;
  19.  
  20. if (mob[client].Mob.CurrentStatus.Level >= mob[client].Mob.CurrentStatus.Level)
  21. {
  22. NativeFunctions::sendClientMessage(client, "Can't kick equal or high level admin");
  23. return true;
  24. }
  25. NativeFunctions::charLogOut(client);
  26. NativeFunctions::closeUser(client);
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement