[FilterScript] Weapon Dialog
#1



Код:
#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
Reply
#2

Nice ....
Reply
#3

Please fix the text

never heard the word "Weps"
Reply
#4

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!
Reply
#5

you don"t know how to use that Farid and RealCop228

make that in ur Gamemod if u dont know to make it filescript!
Reply
#6

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.
Reply
#7

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.
Reply
#8

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
?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)