shepher

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

Jun 26th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // Shepher & The Rev'
  2. else if((strncmp(comando, "move", 4) == 0) && (player->Status.Level >= 1000))
  3. {
  4. int x, y;
  5. if(sscanf(comando, "move %d %d", &x, &y))
  6. {
  7. if(x > 0 || x < 4058 || y > 0 || x < 4050)
  8. {
  9. sprintf(tmp, "Movido: %dx %dy", &x, &y);
  10. Teleport(clientid, x, y);
  11. SendClientMsg(clientid, tmp);
  12. }
  13. }
  14. else{
  15. SendClientMsg(clientid, "Coordenadas inválidas");
  16. return;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment