AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Tech Support (https://forums.alliedmods.net/forumdisplay.php?f=36)
-   -   superhero in gun restricted map (https://forums.alliedmods.net/showthread.php?t=129804)

aba010 06-17-2010 01:41

superhero in gun restricted map
 
The superhero mod is fine in other maps. When I change to awp_india
it only allows awp and granades. Guns which I should get from heros are gone. How do you solve this?

Jelle 06-17-2010 13:11

Re: superhero in gun restricted map
 
Assuming you have the latest version, since you didn't provide any information, you can go to the SH config folder, located in the amxx config folder. In there you can set all maps which has the prefix "awp_" to not let any SH give any weapon out.

vittu 06-17-2010 16:22

Re: superhero in gun restricted map
 
Jelle, he wants weapons give.

The map is probably stripping the player of weapons.

aba010 06-17-2010 17:44

Re: superhero in gun restricted map
 
Quote:

Originally Posted by vittu (Post 1211767)
Jelle, he wants weapons give.

The map is probably stripping the player of weapons.

That's what I mean. How can I fix it so that I can use other weapons?

Jelle 06-17-2010 18:07

Re: superhero in gun restricted map
 
Quote:

Originally Posted by vittu (Post 1211767)
Jelle, he wants weapons give.

The map is probably stripping the player of weapons.

Oh, I guess I misunderstood what he wrote.

Quote:

Originally Posted by aba010 (Post 1211841)
That's what I mean. How can I fix it so that I can use other weapons?

If you are using amxx to give yourself a weapon, do you also drop that one?
If not, then you could set a task each time a player spawns, and give the weapons out after like 2 seconds, where the map stopped stripping all the weapons you have.

aba010 06-17-2010 19:33

Re: superhero in gun restricted map
 
I can use UAIO to give myself weapons. How do you set the thing you ay?

Jelle 06-17-2010 20:14

Re: superhero in gun restricted map
 
Open up each code for each weapon giving hero and make a set_task and let it give weapons 2 seconds after round start.

aba010 06-17-2010 20:44

Re: superhero in gun restricted map
 
where is that code file? sorry, but im new to superero settings. can you quote me the exact code as well . thanks

Jelle 06-18-2010 14:37

Re: superhero in gun restricted map
 
PHP Code:

new args[1]

public 
sh_client_spawn(id)
{
    
//first you check if the guy has the hero or not. If you do not do this, every person will get the weapon
    
args[0] = id
    set_task
(2"give_weapon"0args1"a"1)
}

give_weapon(args)
{
    
sh_give_weapon(argsCSW_M4A1)


I believe this is how you use the set_task, and moves the ID along with it. I have never really used set_task so much, and I actually forgot how to use it a bit.
If anyone sees an error in this, please correct it.

Fr33m@n 06-18-2010 14:40

Re: superhero in gun restricted map
 
I played on this map with an sh server, there is somes zone on spawn who strip weapons.

You can
- try to disable the strip with a plugins but i don't know if this is possible.
- recreate the map without strip zone.
- forget this map, really.

a set task thing is possible but that mean you need to edit all of your weapon heroes for only one map.


All times are GMT -4. The time now is 04:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.