Jump to content

[FS]Dialog simplu cu arme


yourcrys

Recommended Posts

                                    Arme v0.1

                                                    AK47-image.jpg

[glow=red,2,300]Descriere:[/glow]

Sall, am fc un dialog simplu cu arme, cele pe care le cred eu mai importante pentru serverele freeroam, dupa ce iei arma itzi deschide un msgbox in care scrie ex: "Ai primit un ShotGun".

Daca vreti sa il folositi pe srv de RolePlay, adaugati la fiecare listitem sub

GivePlayerWeapon
linia:
GivePlayerMoney(playerid, Suma dorita cu - in fata);
Ex:
GivePlayerMoney(playerid, -500);

[glow=red,2,300]Download:[/glow]

Click aici

~~scaled.php?server=7&filename=logocareerps.jpg&res=medium~~

~~==~~Respect~~==~~

Link to comment
Share on other sites

k, o sa fac cum ai zis tu Stuntman, si mersi mult de nota, si va mai zic tututuror celor ce vizionati dati un comm fie de bn sau de rau.Stuntman, am fc cum ai spus, am sters toate callbackurile si am pus linkul, si va rog sa dati note pentr cum este fsul nu pentru cat de simplu e, ca altii nu stiu nici asta, ma refer ca pentru cei incepatori i ajuta asa un fs.AAAA StuntMan io ma gandeam ca nu te deranjeaza 2 warn-uri, dar daca te deranjeaza leam rezolvat si pe alea cu identitarele, acum sper sa fi multumit;)

~~scaled.php?server=7&filename=logocareerps.jpg&res=medium~~

~~==~~Respect~~==~~

Link to comment
Share on other sites

Roack Luanchser => Rocket Launcher

Grenazi => Grenade

Ti-am facut cateva corecturi + imbunatatiri:

// Dialog Arme
// By Gm3N

#include <a_samp>

#define Dialog_Arme 2452

public OnFilterScriptInit( )
{
	print("\n--------------------------------------");
	print(" Arme by Gm3N loaded                    ");
	print("--------------------------------------\n");
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if( strcmp( cmdtext, "/garme", true ) == 0 )
   	{
   		ShowPlayerDialog(playerid,Dialog_Arme,DIALOG_STYLE_LIST,"Arme by Gm3N","AK47\nShotGun\nPistol\nUzi\nM5\nRocket Launcher\nMini Gun\nGrenazi\nMicro SMG","Selecteaza","Inchide");
    	return 1;
   	}
	return 0;
}
public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
{
	if( dialogid == Dialog_Arme )
	{
		if( !response ) return SendClientMessage(playerid,0x1E519DAA,"Ai inchis meniul de arme");

		switch( listitem )
		{
			case 0://ak47
			{
				GivePlayerWeapon(playerid, 30, 500);
				ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit un AK47", "~Ok~", "BAN");
			}
			case 1://shotgun
			{
				GivePlayerWeapon(playerid, 25, 500);
				ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit un ShotGun", "~Ok~", "BAN");
			}
			case 2://pistol
			{
			    GivePlayerWeapon(playerid, 22, 500);
				ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit un Pistol", "~Ok~", "BAN");
			}
			case 3://uzi
			{
				GivePlayerWeapon(playerid, 32, 500);
				ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit un UZI", "~Ok~", "BAN");
			}
			case 4://m5
			{
				GivePlayerWeapon(playerid, 29, 500);
				ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit un M5", "~Ok~", "BAN");
			}
			case 5://rocketluancher
			{
				GivePlayerWeapon(playerid, 35, 500);
				ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit un Rochet Launcher", "~Ok~", "BAN");
			}
			case 6://minigun
			{
				GivePlayerWeapon(playerid, 38, 500);
				ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit un MiniGun", "~Ok~", "BAN");
			}
			case 7://grenazi
			{
				GivePlayerWeapon(playerid, 16, 500);
				ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit Grenade", "~Ok~", "BAN");
			}
			case 8://micro smg
			{
				GivePlayerWeapon(playerid, 28, 500);
				ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit un Micro Smg", "~Ok~", "BAN");
			}
		}
		return 1;
	}
	return 1;
}

k, o sa fac cum ai zis tu Stuntman, si mersi mult de nota, si va mai zic tututuror celor ce vizionati dati un comm fie de bn sau de rau.Stuntman, am fc cum ai spus, am sters toate callbackurile si am pus linkul, si va rog sa dati note pentr cum este fsul nu pentru cat de simplu e, ca altii nu stiu nici asta, ma refer ca pentru cei incepatori i ajuta asa un fs.AAAA StuntMan io ma gandeam ca nu te deranjeaza 2 warn-uri, dar daca te deranjeaza leam rezolvat si pe alea cu identitarele, acum sper sa fi multumit;)

Voi spuneti in orice fel: StuntMan, Stuntman, stuntMan, numai stuntman nu spuneti xD
Link to comment
Share on other sites

hmm...nu prea ii cn stie ce... 3/5

foarte simplu 2.5/5

Stiu ca nu este cine stie ce , dar macar nu l-a luat de pe forum-ul oficial ca multi altii, a incercat si el  , asa ca nu mai criticati oamenii .

E bun Fs-ul , tine-o tot asa , incearca sa faci unul cu toate armele din San Andreas

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.