Dialog
#1

Hello i have created a dialog
but when i go ingame it doesn't show when i type the cmd

Code-
PHP код:
#include <a_samp>
#define DIALOG_BRW 112911
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Firetruck system by firemanjv");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/fdtruck"true) == 0)
    {
        
ShowPlayerDialog(playeridDIALOG_BRWDIALOG_STYLE_LIST"FD Truck Menu""Chainsaw \n Shovel \n Fire Extinguisher \n Ladder \n Fire Suite \n Medic Suite \n First AID kit""Select""Cancel");
        return 
1;
    }
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
  if(
dialogid == 112911)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
              
GivePlayerWeapon(playerid91500);
             }
            if(
listitem == 1)
            {
              
GivePlayerWeapon(playerid6500);
              }
              if(
listitem == 2)
            {
              
GivePlayerWeapon(playerid425100);
            }
            if(
listitem == 3)
            {
            }
            if(
listitem == 4)
            {
              
SetPlayerSkin(playerid277);
              return 
1;
            }
            if(
listitem == 5)
            {
              
SetPlayerSkin(playerid275);
              return 
1;
            }
            if(
listitem == 6)
            {
              
SetPlayerHealth(playerid100);
               return 
1;
            }
        }
    }
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;

And some other thing how can i make this that it only work when you stand near a firetruck ( ladder/engie) or Ambulance
Reply


Messages In This Thread
Dialog - by firemanjv - 16.03.2013, 16:56
Re: Dialog - by Krakuski - 16.03.2013, 16:59
Re: Dialog - by firemanjv - 16.03.2013, 17:08
Re: Dialog - by kamzaf - 16.03.2013, 17:10
Re: Dialog - by firemanjv - 16.03.2013, 17:14
Re: Dialog - by kamzaf - 16.03.2013, 17:16
Re: Dialog - by firemanjv - 16.03.2013, 17:17
Re: Dialog - by SilverKiller - 16.03.2013, 17:18
Re: Dialog - by firemanjv - 16.03.2013, 18:17

Forum Jump:


Users browsing this thread: 2 Guest(s)