Advertisement
FKu

Untitled

FKu
Oct 19th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. new amount,i;
  2. new Float:x,Float:y,Float:z;
  3.  
  4. if(dialogid==1)
  5. {
  6. if(response)
  7. {
  8. if(strlen(inputtext) > 0)
  9. {
  10. amount=strval(inputtext);
  11. GetPlayerPos(playerid,x,y,z);
  12. ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"ID","Enter the ID of the player u want to tp.","OK","Cancel");
  13. i = 2;
  14. }
  15. }
  16. return 1;
  17. }
  18.  
  19.  
  20.  
  21.  
  22. if(dialogid==2)
  23. {
  24. if(response)
  25. {
  26. if(strlen(inputtext) > 0)
  27. {
  28. new id;
  29. id = strval(inputtext);
  30. y = y + 2;
  31. SetPlayerPos(id,x,y,z);
  32. amount++;
  33.  
  34. if(i<amount)
  35. {
  36. ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"ID","Enter the ID of the player u want to tp.","OK","Cancel");
  37.  
  38. }
  39. }
  40. }
  41. return 1;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement