Advertisement
Guest User

By blackwave

a guest
Dec 20th, 2010
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.54 KB | None | 0 0
  1. public OnPlayerCommandText(playerid,cmdtext[])
  2. {
  3.    if(strcmp("/text",cmdtext,true,10) == 0)
  4.    {
  5.         ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Test", "Test", "do", "cancel");
  6.         return 1;
  7.    }
  8.    return 0;
  9. }
  10.  
  11. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  12. {
  13.    if(dialogid == 0 && response)
  14.    {
  15.         new string[128];
  16.         format(string,sizeof(string),"You typed: %s",inputtext);
  17.         SendClientMessage(playerid, 0xFF48FFFF, string);
  18.         return 1;
  19.    }
  20.    return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement