Need help: Dialog List more menu 1+ rep -
canip - 14.04.2013
Hello can you help me.
How can i add more menus to Dialog_List like if i whant to spawn a car like a bullet it are a fast car so it will be placed in " Fast cars " Like that.
...... Or.
There can be ( Slow cars ) ( Fast cars ) ( Heavy cars ) and then i select Fast cars will a new Dialog_list come up and i can select bullet.
Hope you can help me
Re: Need help: Dialog List more menu 1+ rep -
L.Hudson - 14.04.2013
pawn Код:
if(dialogid == 99991)
{
if(response)
{
switch(listitem)
{
case 0:
{
new Float:x, Float:y, Float:z, Float:r;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, r);
CreateVehicle(411, x, y, z, r, 0, 0, -1);
SendClientMessage(playerid, -1, "You spawned a Infernus(411).");
}
}
}
}
This is a simple one with a infernus, case 0 is the first line of the dialog, you can seperate lines with \n
Re: Need help: Dialog List more menu 1+ rep -
canip - 14.04.2013
I get a error
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/lspdlocker",true)==0)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Shop List","Cadet ","Purchase","Exit");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 99991)
{
if(response)
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) <59) return SendClientMessage(playerid,0xAA3333AA, "Nothing");
new Float:pArmour;
SendClientMessage(playerid,0xFFFFFFAA,"You taked the cadet skin on.");
SetPlayerArmour(playerid, pArmour+100);
SetPlayerHealth(playerid, 100);
SetPlayerSkin(playerid, 71);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 3, 0);
}
}
return 1;
}
return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
Re: Need help: Dialog List more menu 1+ rep -
Isolated - 14.04.2013
There's filterscripts similar to this around...
Clicky Clicky!
Re: Need help: Dialog List more menu 1+ rep -
canip - 14.04.2013
I will make my own
Re: Need help: Dialog List more menu 1+ rep -
kalanerik99 - 14.04.2013
check your inbox canip
Re: Need help: Dialog List more menu 1+ rep -
mameri12 - 14.04.2013
check your inbox canip