IPB

Welcome Guest ( Log In | Register )

> VERY sexy plugin, oh the sexiness! *rub grind rub*
LordSkitch
post Sep 27 2004, 06:26 AM
Post #1


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



alright, AMX plugin, very basic.

CODE
#include <ns2amx>

public plugin_init()
{
register_plugin("Lerk Spikes","1.0","mahnsawce")
register_cvar("ns2amx_lerkspikes","1.0",4)
register_logevent("changerole",3,"1=changed role to","2=lerk")
}
public changerole()
{
new lerk[64],id,name[32]
read_logargv(0,lerk,63)
parse_loguser(lerk,name,31)
id=get_user_index(name)
if (!has_weapon(id,WEAPON_SPIKE))
{
? new entity=create_entity("weapon_spikegun")
? mdll_spawn(entity)
? mdll_touch(entity,id)
}
}


What it does: re-enables lerk spikes


and heres my spikes section of bot_weapons.ini

CODE
# weapon id 4 for NS (spike gun)
[weapon_id=4]
underwater=1
primaryfire=1
primary_min_range=0
primary_max_range=768
priority=7
is_melee=0
[/weapon]



re-enables the spikes for the bots, and they are very mean with it! biggrin.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
LordSkitch
post Oct 2 2004, 08:46 PM
Post #2


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



No, it won't work with AMXX, it needs more include files, and the coding structure is a little different.

There's one that works for AMXX, you can get it at www.modns.org and the people there are better suited to help with plugin problems laugh.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 11th September 2025 - 04:17 PM