How to add rules?
#6

Or, more efficient:
pawn Code:
public OnPlayerSpawn(playerid)
{
   TogglePlayerControllable(playerid, false);
   ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Rules here", "Understood", "Cancel");
   return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == 1)
   {
      if(!response) // If he clicked on "Cancel"
      {
         Kick(playerid); // It will kick him
         return 1;
      } else {
         TogglePlayerControllable(playerid, true);
      }
      return 1;
   }
   return 0;
}
Reply


Messages In This Thread
How to add rules? - by acok97 - 15.08.2009, 05:51
Re: How to add rules? - by Abernethy - 15.08.2009, 06:00
Re: How to add rules? - by Adil - 15.08.2009, 06:01
Re: How to add rules? - by acok97 - 15.08.2009, 06:24
Re : How to add rules? - by Naruto_Emilio - 13.05.2011, 14:16
Re: How to add rules? - by Biesmen - 13.05.2011, 14:23

Forum Jump:


Users browsing this thread: 4 Guest(s)