SA-MP Forums Archive
DIALOG_STYLE_INPUT [Solved] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: DIALOG_STYLE_INPUT [Solved] (/showthread.php?tid=144746)



DIALOG_STYLE_INPUT [Solved] - ViruZZzZ_ChiLLL - 28.04.2010

Question:
Is it possible, when you type a players id in the DIALOG_STYLE_INPUT
and press Select. That player will be kicked, muted, etc.

________
Magic flight


Re: DIALOG_STYLE_INPUT - DarkPower - 28.04.2010

Yes it is


Re: DIALOG_STYLE_INPUT - ViruZZzZ_ChiLLL - 29.04.2010

Okay, so how do I do that?? I already got the command.

in this first response you must type in the player id

in this second response you should write the reason of kick, muting, etc..
________
Honda Ape Specifications


Re: DIALOG_STYLE_INPUT - Miguel - 29.04.2010

pawn Код:
public OnDialogResponse(look for the callback params lol)
{
  if(response)
  {
    if(dialogid == DIALOG)
    {
      if(IsPlayerConnected(strval(inputtext)))
      {
        // do whatever you want with the player
      }
      else
      {
        // the playerid was not connected
      }
    }
  }
  return 1;
}



Re: DIALOG_STYLE_INPUT - ViruZZzZ_ChiLLL - 29.04.2010

in this second response you should write the reason of kick, muting, etc.. <~ I mean, before muting the player you should right first the reason on the dialog response.
nvm xD
________
TOYOTA STADIUM (CRONULLA) HISTORY