Page 1 of 1

[Plugin] Help Me

Posted: Wed May 21, 2008 2:54 pm
by paprzyk
Hi,

I want to create new plugin for my server and my question is

What i have to write to create plugin only for Chameleon race.

example

Code: Select all

public RemovepickedWeapon(id) {

if(!RACE_CHAM)

		return PLUGIN_CONTINUE


public RemovePickedWeapon(id) {
	if(!is_user_alive(id) || !is_user_connected(id)) 
		return PLUGIN_CONTINUE
	
	if(block[id])
	{
		engclient_cmd(id, "drop", "weapon_c4")
		strip_user_weapons(id)
		give_item(id,"weapon_knife")
I want Race Chameleon to use only knife.

Can Author of Wc3mod or someone help me??

Regards,

paprzyk

Posted: Wed May 21, 2008 7:22 pm
by YamiKaitou
Search the AMXx forums for how to prevent weapon pickup

Posted: Thu May 22, 2008 12:38 am
by paprzyk
I have plugin with Weapon restrict and my friend cant wrhite this again but i don't have line:

if (Race_Cham) i dont know why it doesnt work

Posted: Fri May 23, 2008 7:21 am
by Geesu
you can't do that... you would have to code it IN war3ft - you can't write a separate plugin that determines if a player is chameleon