[HELP] License Plate
#2

Try this, it is not tested.

pawn Код:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/caroptions", true))
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFF0000FF,"You must be in a vehicle.");
       
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Car Options", "License Plate", "Select", "Cancel");
            return 1;
     
    }
    return 0;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response)
        {
            if(listitem == 0) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Linence Plate", "Enter your license nuber (MAX: 32 characters)", "Update", "Cancel");
        }
    }
   
    else if(dialogid == 2)
    {
        if(response)
        {
            for(new v = 0; v < MAX_PLAYERS; v ++)
            {
                SetVehicleNumberPlate(v,inputtext);
                SetVehicleToRespawn(v);
            }
            return 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread
[HELP] License Plate - by Larsey123IsMe - 05.01.2011, 22:22
Re: [HELP] License Plate - by Doom8890 - 05.01.2011, 22:49
Re: [HELP] License Plate - by Larsey123IsMe - 05.01.2011, 23:07
Re: [HELP] License Plate - by Sascha - 05.01.2011, 23:10
Re: [HELP] License Plate - by Larsey123IsMe - 05.01.2011, 23:14
Re: [HELP] License Plate - by Doom8890 - 05.01.2011, 23:14
Re: [HELP] License Plate - by Larsey123IsMe - 05.01.2011, 23:45
Re: [HELP] License Plate - by Kaylux - 05.01.2011, 23:57
Re: [HELP] License Plate - by Larsey123IsMe - 06.01.2011, 00:11
Re: [HELP] License Plate - by Larsey123IsMe - 06.01.2011, 10:23

Forum Jump:


Users browsing this thread: 4 Guest(s)