Need Help with Menu and get_user_ammo
Question 1:
How do I make a second Menu Column? Like this: Code:
1. Option 1 $100Code:
format(menuBody, 511, "Buy Ammo - Your Money: $%i^n^n 1. Six 357 Rounds^n 2. Twelve Shotgun Buckshots^n 3. Five Sniper Rifle Bullets^n 4. Five Crossbow Arrows^n 5. 20 Energy Cells^n 6. Two RPG Rockets^n 7. Two AR Grenades^n 8. 17 9mm Bullets^n 9. 100 Minigun Rounds^n^n 0. Close",g_money[id])Question 2: How do I use get_user_ammo correctly? What to "#include"? Code:
if(get_user_ammo(id, 3, 0, 36)and how can I know what weapon has the ID "3"? Is there a list? Thanks in advance! I also will give Karma! This are the last two problems on my way to the working plugin! |
Re: Need Help with Menu and get_user_ammo
Ok well just add the prices to your format
Code:
|
Re: Need Help with Menu and get_user_ammo
That is an option, but it does not look that ordinary...
:p And as this makes me megalomaniacal, I want to know how I make the Plugin wait for a specific time, then do something. I got the idea to send a Message to a player, 60 Seconds after this Player connected. |
Re: Need Help with Menu and get_user_ammo
Quote:
Quote:
Code:
Quote:
Quote:
|
Re: Need Help with Menu and get_user_ammo
so i have
1. 357 Ammo\R123$^n2. Sniper Ammo\R321$^n and so on? well, the list is for counter strike, not for sven cooperative, thanks anyways, if I ever script for cs ^^ and set_task does not look like i need to ask something :p |
Re: Need Help with Menu and get_user_ammo
Well, "\R" probably will not work for SvenCoop.
|
Re: Need Help with Menu and get_user_ammo
I actually asked if \R works in the way I posted it:
1. 357 Ammo\R123$^n2. Sniper Ammo\R321$^n and so on and if i write: Code:
new 357_clips, 357_rndserror 020: invalid symbol name "" error 029: invalid expression, assumed zero error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line and those all go for the first line in mentioned code EDIT: Fixed the kind of senceless bug: symbol must not start with a number -.- changed 357_clips to a357_clips and 357_rnds to a357_rnds EDIT: get_user_ammo(id, 3, a357_clips, a357_rnds) does a357_rnds include the ammo in the current clip? weapon_357 has 6 rounds per clip and you can carry 6 clips with the clip in the weapon. so if my hud says (6|36), will a357_rnds be 36, or 42 (6 + 36)? |
Re: Need Help with Menu and get_user_ammo
Quote:
Code:
Quote:
Quote:
Quote:
|
Re: Need Help with Menu and get_user_ammo
Thanks! I built a little script and got all IDs!
For who ever else needs this: SC Sven Coop Sven Cooperative Weapon Constants Weapons Constants ID IDs (Some similar repeating so you can find this with search) WeaponID is 1, WeaponName is weapon_crowbar WeaponID is 2, WeaponName is weapon_9mmhandgun WeaponID is 3, WeaponName is weapon_357 WeaponID is 4, WeaponName is weapon_9mmAR WeaponID is 5, WeaponName is WeaponID is 6, WeaponName is weapon_crossbow WeaponID is 7, WeaponName is weapon_shotgun WeaponID is 8, WeaponName is weapon_rpg WeaponID is 9, WeaponName is weapon_gauss WeaponID is 10, WeaponName is weapon_egon WeaponID is 11, WeaponName is weapon_hornetgun WeaponID is 12, WeaponName is weapon_handgrenade WeaponID is 13, WeaponName is weapon_tripmine WeaponID is 14, WeaponName is weapon_satchel WeaponID is 15, WeaponName is weapon_snark WeaponID is 16, WeaponName is weapon_uziakimbo WeaponID is 17, WeaponName is weapon_uzi WeaponID is 18, WeaponName is weapon_medkit WeaponID is 19, WeaponName is WeaponID is 20, WeaponName is weapon_pipewrench WeaponID is 21, WeaponName is weapon_minigun WeaponID is 22, WeaponName is weapon_grapple WeaponID is 23, WeaponName is weapon_sniperrifle WeaponID is 24, WeaponName is WeaponID is 25, WeaponName is WeaponID is 26, WeaponName is WeaponID is 27, WeaponName is WeaponID is 28, WeaponName is WeaponID is 29, WeaponName is WeaponID is 30, WeaponName is An ID where no weapon is shown does not have a weapon assigned (Do not use these IDs) One Problem remains: \R does not work. In the Menu I can read \R, it does not TAB or something. Sven Cooperatives fault? Any other way? EDIT: One weapon uses two ammo types, how can i get the amount of the second ammo type? (ammo_ARgrenades) I tried to use ID 5 as a weapon ID, because it is right after weapon_9mmAR, but it is the same. and a 3rd problem! client_spawn does not work: Code:
but what to use then? |
| All times are GMT -4. The time now is 08:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.