Jump to content
  • 0

pomoc Pickup a dostani zbrane


Ozi

Dotaz

Zdravím teď si asi hodně snížím reputaci, ale nemůžu na to přijit potřeboval bych poradit takže začnu.

 

Mám vytvořeny pickup

 

Pickup[5] = CreatePickup(359, 1,234.5308,-1828.2958,3.8550);

 

v publicu OnPlayerPickUpPickup(playerid, pickupid) mám

 

if(pickupid == Pickup[5])

{

SendClientMessage(playerid,svetle_modra,"dostal jsi svou zbran");

GivePlayerWeapon(playerid,347,1000);

}

 

vše mi funguje ale když ve hře přijdu na danny pickup tak tu zbran nedostanu tak co tu mam špatně díky moc.

p.s. možna už to tu je ale mě se nechce hledat a potřebuji to rychle díky :| :| :|

Link to comment
Share on other sites

11 odpovědí na tuto otázku

Recommended Posts

  • 0

Já to mam v modu taky

Mam to tam takle

New

new Menu:m;
new m4;

 

Ongamemodelnit

   	m4 = CreatePickup(356,1,souradnice);
m = CreateMenu("~r~M4",3,20,220,200,100);
   AddMenuItem(m, 0, "Koupit");
   AddMenuItem(m, 0, "Konec");

 

 

Pikuppickup

	if(m4 == pickupid)
  	{
  	ShowMenuForPlayer(m, playerid);
  	}

 

A menurow

	if (Current == m ) {
switch(row) {
case 0:{
   SendClientMessage(playerid,COLOR_RED,"Koupil sis M4");
  	GivePlayerWeapon(playerid, 31, 500);
   GivePlayerMoney(playerid, -1000);
}
}
}

 

Dal jsem sem přiklad na m4 ,ale to už si změň.Je trochu jiný než máš ty

Link to comment
Share on other sites

  • 0

tu mas id zbrani z includu a_samp

 

#define WEAPON_BRASSKNUCKLE (1)

#define WEAPON_GOLFCLUB (2)

#define WEAPON_NITESTICK (3)

#define WEAPON_KNIFE (4)

#define WEAPON_BAT (5)

#define WEAPON_SHOVEL (6)

#define WEAPON_POOLSTICK (7)

#define WEAPON_KATANA (8)

#define WEAPON_CHAINSAW (9)

#define WEAPON_DILDO (10)

#define WEAPON_DILDO2 (11)

#define WEAPON_VIBRATOR (12)

#define WEAPON_VIBRATOR2 (13)

#define WEAPON_FLOWER (14)

#define WEAPON_CANE (15)

#define WEAPON_GRENADE (16)

#define WEAPON_TEARGAS (17)

#define WEAPON_MOLTOV (18)

#define WEAPON_COLT45 (22)

#define WEAPON_SILENCED (23)

#define WEAPON_DEAGLE (24)

#define WEAPON_SHOTGUN (25)

#define WEAPON_SAWEDOFF (26)

#define WEAPON_SHOTGSPA (27)

#define WEAPON_UZI (28)

#define WEAPON_MP5 (29)

#define WEAPON_AK47 (30)

#define WEAPON_M4 (31)

#define WEAPON_TEC9 (32)

#define WEAPON_RIFLE (33)

#define WEAPON_SNIPER (34)

#define WEAPON_ROCKETLAUNCHER (35)

#define WEAPON_HEATSEEKER (36)

#define WEAPON_FLAMETHROWER (37)

#define WEAPON_MINIGUN (38)

#define WEAPON_SATCHEL (39)

#define WEAPON_BOMB (40)

#define WEAPON_SPRAYCAN (41)

#define WEAPON_FIREEXTINGUISHER (42)

#define WEAPON_CAMERA (43)

#define WEAPON_PARACHUTE (46)

#define WEAPON_VEHICLE (49)

#define WEAPON_DROWN (53)

#define WEAPON_COLLISION (54)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...