Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new amount,i;
- new Float:x,Float:y,Float:z;
- if(dialogid==1)
- {
- if(response)
- {
- if(strlen(inputtext) > 0)
- {
- amount=strval(inputtext);
- GetPlayerPos(playerid,x,y,z);
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"ID","Enter the ID of the player u want to tp.","OK","Cancel");
- i = 2;
- }
- }
- return 1;
- }
- if(dialogid==2)
- {
- if(response)
- {
- if(strlen(inputtext) > 0)
- {
- new id;
- id = strval(inputtext);
- y = y + 2;
- SetPlayerPos(id,x,y,z);
- amount++;
- if(i<amount)
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"ID","Enter the ID of the player u want to tp.","OK","Cancel");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement