[FilterScript] [FS] Weapon Spawner with DIALOG || Fegyver Spawnolу (ENG / HUN) V2
#1

[b]Weapon spawner script || Fegyver spawnolу script
Version 2

With DIALOG || Pбrbeszйd-panellel


Description (ENG):

The script has got a DIALOG. The dialog has got nine pieces of weapon.
The menu command (in the english version): /weapon
Anything bug or a thing to be repaired, please write!


Leнrбs (HUN):

A script egy előhнvhatу pбrbeszйd-panellel rendelkezik. A dialуgusban kilenc darab fegyver van. Ezeket lehet egyesйvel lekйrni.
A menьt előhнvу parancs (a magyar verziуban): /fegyver
Bбrmi bugot, esetleg javнtandу dolgot talбltok, нrjatok!


PICTURE || English version





KЙP || Magyar verziу





DOWNLOAD || English version (V2)




LETЦLTЙS || Magyar verziу (V2)






DOWNLOAD || Eglish version (V1):



LETЦLTЙS || Magyar verziу (V1):




Created by ANtus || Kйszнtette: ANtus
2010
Reply
#2

9 weapons and in Menus ?? no GUI??

sorry but this is just a tra**
Reply
#3

OK. I have been working on V2. This my first script.
Reply
#4

its your 1st?? so its okay xD i though its 2nd
Reply
#5

szasz lбtom йrtesz ehez ha tuc scriptelni akor nagy segitsйg volna ha segitenйl RP-szerohoz kel segitsйg
Reply
#6

Quote:
Originally Posted by dusa bence
szasz lбtom йrtesz ehez ha tuc scriptelni akor nagy segitsйg volna ha segitenйl RP-szerohoz kel segitsйg

Szia!


Hбt az gyцnge tъlzбs, hogy tudok scriptelni, de hбt rajta vagyok a tйmбn, tanulgatom.
Нrd le PM-be, hogy mire lenne szьksйged.

+ ha most kezdesz egy RP szervert programozni, akkor ajбnlom neked a LARP (Los Angeles RP) modot, melynek a kуdolбsбt kцnnyebben le tudod fordнtani йs kiegйszнteni sem nehйz.

LARP mod: http://forum.sa-mp.com/index.php?topic=122841.0
Reply
#7

Nice...
Reply
#8

Quote:
Originally Posted by bero1711
Nice...
Thanks! but I have been learning the Pawno and working on Version 2.
Reply
#9

Quote:
Originally Posted by DarK TeaM PT
9 weapons and in Menus ?? no GUI??

sorry but this is just a tra**
whats ur problem?

he worked nice 10/10pts
Reply
#10

Quote:
Originally Posted by Visual_Pleasure aka Chaos_Reaper
Quote:
Originally Posted by DarK TeaM PT
9 weapons and in Menus ?? no GUI??

sorry but this is just a tra**
whats ur problem?

he worked nice 10/10pts
Thanks
Reply
#11

Firssнtve! 2. verziу kйsz van a hasznбlatra. A menьből pбrbeszйd-panel-t kйszнtettem.

Refreshed! Second version available. The script is ready for use. I maked a dialog from a menu.
Reply
#12

Quote:
Originally Posted by antus
[b]Weapon spawner script || Fegyver spawnolу script
Version 2

With DIALOG || Pбrbeszйd-panellel


Description (ENG):

The script has got a DIALOG. The dialog has got nine pieces of weapon.
The menu command (in the english version): /weapon
Anything bug or a thing to be repaired, please write!


Leнrбs (HUN):

A script egy előhнvhatу pбrbeszйd-panellel rendelkezik. A dialуgusban kilenc darab fegyver van. Ezeket lehet egyesйvel lekйrni.
A menьt előhнvу parancs (a magyar verziуban): /fegyver
Bбrmi bugot, esetleg javнtandу dolgot talбltok, нrjatok!


PICTURE || English version





KЙP || Magyar verziу





DOWNLOAD || English version (V2)




LETЦLTЙS || Magyar verziу (V2)






DOWNLOAD || Eglish version (V1):



LETЦLTЙS || Magyar verziу (V1):




Created by ANtus || Kйszнtette: ANtus
2010
hello nagyon jу de megprуbбltam gangwarba бtalakнtani tцkйletes.. elmйletileg. gyakorlatba kevйsbй mert ugyan kijцn a menu de ha rбkattintok nem műkцdik namost itt a pawno code szeretnйm ha megnйznйd mi vele a baj:

Code:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/gangwar", true) == 0)
	{
		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Gangwar", "Grove-Team \nBallas-Team \nAztec-Team \nVagos-Team \nPolice-Team \nArmy-Team", "Select", "Cancel");
		return 1;
	}
	return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if(dialogid == 1)
	{
		if(response)
		{
			if(listitem == 0)
			{
				ResetPlayerWeapons(playerid);
				GivePlayerWeapon(playerid, 26, 1000);
				GivePlayerWeapon(playerid, 28, 1000);
				GivePlayerWeapon(playerid, 30, 1000);
				SetPlayerTeam(playerid, 1);
				SetPlayerPos(playerid, 2510.9182,-1667.1847,13.5677);
				SetPlayerFacingAngle(playerid, 108.3680);
				SetPlayerSkin(playerid, 107);
				SetPlayerHealth(playerid, 100);
  			SetPlayerArmour(playerid, 100);
				SetPlayerColor(playerid,0x33AA33AA);
				SendClientMessage(playerid, 0x33AA33AA, "You joined the GROVE-TEAM!");
				SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
				TogglePlayerControllable(playerid,1);
 			}
 			if(listitem == 1)
			{
				ResetPlayerWeapons(playerid);
				GivePlayerWeapon(playerid, 26, 1000);
				GivePlayerWeapon(playerid, 28, 1000);
				GivePlayerWeapon(playerid, 30, 1000);
				SetPlayerTeam(playerid, 2);
				SetPlayerPos(playerid, 2196.3926,-1143.8621,38.1016);
				SetPlayerFacingAngle(playerid, 223.5255);
				SetPlayerSkin(playerid, 104);
				SetPlayerHealth(playerid, 100);
 		  	  SetPlayerArmour(playerid, 100);
				SetPlayerColor(playerid,0x9900FFAA);
				SendClientMessage(playerid, 0x9900FFAA, "You joined the BALLAS-TEAM!");
				SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
				TogglePlayerControllable(playerid,1);
 			}
 			if(listitem == 2)
			{
				ResetPlayerWeapons(playerid);
				GivePlayerWeapon(playerid, 26, 1000);
				GivePlayerWeapon(playerid, 28, 1000);
				GivePlayerWeapon(playerid, 30, 1000);
				SetPlayerTeam(playerid, 3);
				SetPlayerPos(playerid, 2070.4202,-1593.1276,13.4980);
				SetPlayerFacingAngle(playerid, 182.0797);
				SetPlayerSkin(playerid, 116);
				SetPlayerHealth(playerid, 100);
  			SetPlayerArmour(playerid, 100);
				SetPlayerColor(playerid,0x00BFFFAA);
				SendClientMessage(playerid, 0x00BFFFAA, "You joined the AZTEC-TEAM!");
				SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
				TogglePlayerControllable(playerid,1);
 			}
 			if(listitem == 3)
			{
				ResetPlayerWeapons(playerid);
				GivePlayerWeapon(playerid, 26, 1000);
				GivePlayerWeapon(playerid, 28, 1000);
				GivePlayerWeapon(playerid, 30, 1000);
				SetPlayerTeam(playerid, 4);
				SetPlayerPos(playerid, 2805.2954,-1186.1564,25.4356);
				SetPlayerFacingAngle(playerid, 280.5977);
				SetPlayerSkin(playerid, 108);
				SetPlayerHealth(playerid, 100);
  			SetPlayerArmour(playerid, 100);
				SetPlayerColor(playerid,0xFFFF00AA);
				SendClientMessage(playerid, 0xFFFF00AA, "You joined the VAGOS-TEAM!");
				SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
				TogglePlayerControllable(playerid,1);
 			}
 			if(listitem == 4)
			{
				ResetPlayerWeapons(playerid);
				GivePlayerWeapon(playerid, 26, 1000);
				GivePlayerWeapon(playerid, 28, 1000);
				GivePlayerWeapon(playerid, 30, 1000);
				SetPlayerTeam(playerid, 5);
				SetPlayerPos(playerid, 1579.3662,-1635.3933,17.9324);
				SetPlayerFacingAngle(playerid, 342.3749);
				SetPlayerSkin(playerid, 280);
				SetPlayerHealth(playerid, 100);
  			SetPlayerArmour(playerid, 100);
				SetPlayerColor(playerid,0x0000FFAA);
				SendClientMessage(playerid, 0x0000FFAA, "You joined the POLICE-TEAM!");
				SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
				TogglePlayerControllable(playerid,1);
 			}
 			if(listitem == 5)
			{
				ResetPlayerWeapons(playerid);
				GivePlayerWeapon(playerid, 26, 1000);
				GivePlayerWeapon(playerid, 28, 1000);
				GivePlayerWeapon(playerid, 30, 1000);
				SetPlayerTeam(playerid, 6);
				SetPlayerPos(playerid, 2745.6030,-2453.7979,16.6562);
				SetPlayerFacingAngle(playerid, 278.0357);
				SetPlayerSkin(playerid, 287);
				SetPlayerHealth(playerid, 100);
  		 	  SetPlayerArmour(playerid, 100);
				SetPlayerColor(playerid,0x993300AA);
				SendClientMessage(playerid, 0x993300AA, "You joined the ARMY-TEAM!");
				SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
				TogglePlayerControllable(playerid,1);
 			
 			}
		}
	}
	return 1;
}
sejtem mi lehet de ha az nem tudom mire kellene бtнrni szerintem ez: if(listitem == 0)
{

előre is kцsz a vбlaszod.
Sajtos
Reply
#13

Szia!

Kiprуbбltam йn is. egy sajбt gamemode alatt futtattam le, йs valуban nem csinбlt semmit. A baj valуszнnűleg onnan szбrmazhat, hogy a gamemode tartalmaz dialуgusokat йs az ID-jьk egyezik. A DialogID-ket fцlemeltem 700, 701 ... stb.-re ( йn 700-ra tettem) йs нgy lefuttatva tцkйletesen műkцdцtt.

ID бtнrбs:
Code:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST

ShowPlayerDialog(playerid, 700, DIALOG_STYLE_LIST
Code:
if(dialogid == 1)

if(dialogid == 700)
Egyйbkйnt a /exitgw cmd mйg hiбnyzik belőle

Am. ezt a scriptet Te нrtad? Igen szйp.

Ьdv: ANtus
Reply
#14

Quote:
Originally Posted by antus
Szia!

Kiprуbбltam йn is. egy sajбt gamemode alatt futtattam le, йs valуban nem csinбlt semmit. A baj valуszнnűleg onnan szбrmazhat, hogy a gamemode tartalmaz dialуgusokat йs az ID-jьk egyezik. A DialogID-ket fцlemeltem 700, 701 ... stb.-re ( йn 700-ra tettem) йs нgy lefuttatva tцkйletesen műkцdцtt.

ID бtнrбs:
Code:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST

ShowPlayerDialog(playerid, 700, DIALOG_STYLE_LIST
Code:
if(dialogid == 1)

if(dialogid == 700)
Egyйbkйnt a /exitgw cmd mйg hiбnyzik belőle

Am. ezt a scriptet Te нrtad? Igen szйp.

Ьdv: ANtus
kiprуbбlom am vйgьlis a te dialogodra йpьl de a tцbbit йn
prуbбlkozok йn is a scriptelйsel van is szerverem/szerverьnk haverommal kint van a game-monitoros link ha van kedved feljцhetsz
Reply
#15

ja йs az exitgw az a gamemodeba kьlцn van nem akartam egy dialogba betenni tъl macerбs lenne
amugykiprуbбltam йs van egy olyan scriptem hogy vehicle spawner az is dialogal műkцdik csak az a vicc hogy ha kiveszem a vehicle spawnert akkor műkцdik a gangwaros dialog... nem lehetne ezt valahogy megoldani?

kiprobбltam mбs id-kell (nemcsak a 700,701...stb)йs azokkal se ment a vehicle spawner idje 3434-től 3449-ig (kiprуbбltam 4500on de nem műkцdцtt)
Reply
#16

Valami ID egyezйs lehet csakis a baja. Prуbбld meg azt (voltam fцnt a szervereden йs lбttam miből indultбl ki), hogy ezt a dialogosat нrd bele a gamemode-ba az előzőset (/grove, /ballas stb...) meg tцrцld. egyйbkйnt nбlam is volt mбr ilyen jellegű hiba, de prуbбlom a dialуgusokat beletenni a gamemode-ba, vagy ha nincs rб lehetősйg, akkor egy FS-be.
Reply
#17

This is an English only board, post in your own section if your going to speak a different language.
Reply
#18

Quote:
Originally Posted by antus
Valami ID egyezйs lehet csakis a baja. Prуbбld meg azt (voltam fцnt a szervereden йs lбttam miből indultбl ki), hogy ezt a dialogosat нrd bele a gamemode-ba az előzőset (/grove, /ballas stb...) meg tцrцld. egyйbkйnt nбlam is volt mбr ilyen jellegű hiba, de prуbбlom a dialуgusokat beletenni a gamemode-ba, vagy ha nincs rб lehetősйg, akkor egy FS-be.
ббб kцszi DD műkцdik rendesen most hogy нgy betettem a gamemode-ba sőt mйg a pickup rendszerem is műkцdik ami kb fйl йve halott XD
Reply
#19

Quote:
Originally Posted by V1ceC1ty
This is an English only board, post in your own section if your going to speak a different language.
^

And why you made part of this script in Hungarian Language... That's why I won't test it but Good job...
Reply
#20

Quote:
Originally Posted by V1ceC1ty
This is an English only board, post in your own section if your going to speak a different language.
Sorry. I just reply for the asker in Hungarian.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)