shepher

Comando /kick -Shepher & The Rev' [Your Destiny Project.dll]

Jun 26th, 2011
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. // By Shepher & The Rev'
  2. else if(strncmp(comando, "kick", 4) == 0)
  3. {
  4. if(!(tmp2 = strtok(comando2, " ")))
  5. {
  6. SendClientMsg(clientid, "Digite o personagem");
  7. return;
  8. }
  9. char nick[12];
  10. sscanf(comando, "kick %s", &nick);
  11. int user = GetUserByName(nick);
  12. if(user == 0)
  13. {
  14. SendClientMsg(clientid, "Personagem não está online!");
  15. return;
  16. }
  17. else
  18. {
  19. CloseUser(user);
  20. sprintf(tmp, "Usuário %s kickado! ClientID: %d", nick, user);
  21. SendClientMsg(clientid, tmp);
  22. return;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment