Ozi 1 Odesláno: 5. Březen, 2009 Share Odesláno: 5. Březen, 2009 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 More sharing options...
0 Paulie 0 Odesláno: 5. Březen, 2009 Share Odesláno: 5. Březen, 2009 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 More sharing options...
0 Ozi 1 Odesláno: 5. Březen, 2009 Author Share Odesláno: 5. Březen, 2009 j to by šlo ale chce to něco bez menu Link to comment Share on other sites More sharing options...
0 Paulie 0 Odesláno: 5. Březen, 2009 Share Odesláno: 5. Březen, 2009 Já to mam zas radší když je tam menu Link to comment Share on other sites More sharing options...
0 Ozi 1 Odesláno: 5. Březen, 2009 Author Share Odesláno: 5. Březen, 2009 aha no to ja ne to bych pak neměl co vylepšovat a předělávat. Link to comment Share on other sites More sharing options...
0 -other-Mizi_CZ 0 Odesláno: 5. Březen, 2009 Share Odesláno: 5. Březen, 2009 odkud bereš ty ID ?? tu máš jiný: http://wiki.sa-mp.com/wiki/Weapons // používej to ID (první číslo) Link to comment Share on other sites More sharing options...
0 Paulie 0 Odesláno: 5. Březen, 2009 Share Odesláno: 5. Březen, 2009 Ty idy jsou pickupy zbraní... Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 5. Březen, 2009 Share Odesláno: 5. Březen, 2009 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 More sharing options...
0 -other-Mizi_CZ 0 Odesláno: 5. Březen, 2009 Share Odesláno: 5. Březen, 2009 jj pickupy... ale jak může dát pickupy do GivePlayerWeapon... to je lbbost... jen u něčeho to jde... dej am ty id jak jsem ti poslal nebo jak dal crasher Link to comment Share on other sites More sharing options...
0 Paulie 0 Odesláno: 5. Březen, 2009 Share Odesláno: 5. Březen, 2009 Myslíš idy těch pickupu zbraní? Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 5. Březen, 2009 Share Odesláno: 5. Březen, 2009 id pickupu zbrane sa do GivePlayerWeapon dat nemoze jak powedal Mizi je to proste blbost........Musis dat id zbrane dal som ich vyssie :geek: Link to comment Share on other sites More sharing options...
0 Paulie 0 Odesláno: 5. Březen, 2009 Share Odesláno: 5. Březen, 2009 Já to vím ,ale já sem ho nepochopil co myslí Link to comment Share on other sites More sharing options...
Dotaz
Ozi 1
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now