Returning Command with parameters (ZCMD)
#1

I have a dialog that shows up when you click a player that lists several admin functions. Under OnDialogResponse, I want to be able to execute commands and use the clickedplayerid as a parameter. For example
pawn Код:
//Dialog Response
switch(listitem)
{
     case 0:
     {
          return cmd_kick(playerid, params);
except replacing params with the clickedplayerid. If there is a better way of doing this, let me know but this appears to be the most simple. Thanks
Reply


Messages In This Thread
Returning Command with parameters (ZCMD) - by randomkid88 - 17.01.2011, 02:49
Re: Returning Command with parameters (ZCMD) - by *IsBack - 17.01.2011, 05:47
Re: Returning Command with parameters (ZCMD) - by randomkid88 - 17.01.2011, 15:14

Forum Jump:


Users browsing this thread: 3 Guest(s)