[FilterScript] Weapon Dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Weapon Dialog (
/showthread.php?tid=201916)
Weapon Dialog -
AzTeCaS - 22.12.2010
Код:
#define DIALOG_WEPS 1
You need to define ur Dialog
Код:
if(!strcmp(cmdtext, "/Weps", true) =0
{
ShowPlayerDialog(playerid,DIALOG_WEPS, DIALOG_STYLE_LIST, "Weps", "RW Weapon,\nWW Weapon", "Ok", "Cancel");
return 1;
}
then use ur Commands
after last step
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_WEPS:
{
if(response)
{
switch(listitem)
{
case 0:
{
GivePlayerWeapon(playerid, 28, 0x7F800000);
GivePlayerWeapon(playerid, 26, 0x7F800000);
}
case 1:
{
GivePlayerWeapon(playerid, 24, 0x7F800000);
GivePlayerWeapon(playerid, 27, 0x7F800000);
GivePlayerWeapon(playerid, 34, 0x7F800000);
}
}
}
}
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Download ur FileScript Here
http://pastebin.com/RjtDbcda
Re: Weapon Dialog -
Rock18 - 22.12.2010
Nice ....
Re: Weapon Dialog -
Farid - 22.12.2010
Please fix the text
never heard the word "Weps"
Re: Weapon Dialog -
Scenario - 22.12.2010
You cannot call this a filter-script since it is a dialog with two choices, which only give you weapons. Oh and it's not a "FileScript", learn to read!
Re: Weapon Dialog -
AzTeCaS - 22.12.2010
you don"t know how to use that Farid and RealCop228
make that in ur Gamemod if u dont know to make it filescript!
Re: Weapon Dialog -
Scenario - 22.12.2010
Quote:
Originally Posted by AzTeCaS
you don"t know how to use that Farid and RealCop228
make that in ur Gamemod if u dont know to make him filescript!
|
Actually, you don't know me and if you would actually search; I am a "scripter" myself who knows much more then you do.
Re: Weapon Dialog -
MestreKiller - 22.12.2010
Quote:
Originally Posted by RealCop228
Actually, you don't know me and if you would actually search; I am a "scripter" myself who knows much more then you do.
|
You'r just playing cocky, he dosnt even know how to spell filterscript, he sayed filescript.
Give him a break.
Re: Weapon Dialog -
sleepysnowflake - 19.01.2011
Maybe im not such a good scripter but houldnt it be
if(!strcmp(cmdtext, "/Weps", true) = 0)
Insted of:
if(!strcmp(cmdtext, "/Weps", true) =0
?