[HELP] If Mapname Then Give Wep + Ammo
I'm trying to make a plugin that does the following:
Gives ammo to killer. (Not sure if it is correctly done) Gives weapon + ammo when you spawn, weapon and ammo is different depending on mapname. Is it correct to check mapname in plugin init? Thank you very much. I'm getting these errors: Quote:
Code:
|
Re: [HELP] If Mapname Then Give Wep + Ammo
Code:
|
Re: [HELP] If Mapname Then Give Wep + Ammo
Quote:
|
Re: [HELP] If Mapname Then Give Wep + Ammo
You can use an integer and give a value for each map
Code:
|
Re: [HELP] If Mapname Then Give Wep + Ammo
I'm not sure if you could use strings in switch , only 1 char.
|
Re: [HELP] If Mapname Then Give Wep + Ammo
Try this:
Code:
|
Re: [HELP] If Mapname Then Give Wep + Ammo
Quote:
But I'm sorry to say this is way too advanced for me. I would love to understand, seems very complex. I'm not sure how to integrate this. Thanks. |
Re: [HELP] If Mapname Then Give Wep + Ammo
Basically this stock returns a value depending on it searches. So we are looking for a value of a map, lets say: get_value_from_data("de_dust")
The stock will quickly look up at the file & get it's value, only if the map is on the file. Code:
"de_dust2" 1 "de_dust" 2 "de_inferno" 3 "cs_assault" 4 You can get rid of add_map. You can manually configure them on the file. Reminder: Don't set a map's value 0, the 0 is the default value of an undefined integer. The stock get's an number from a map, if the map doesn't exists then the integer won't have a call. (you can get rid of it if you set it on "-1". ReturnValue = -1; |
| All times are GMT -4. The time now is 04:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.