DIALOG_STYLE_INPUT [Solved]
#1

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
Reply
#2

Yes it is
Reply
#3

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
Reply
#4

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;
}
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)