[Plugin] Help Me

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
paprzyk
Peon
Posts: 8
Joined: Wed May 14, 2008 2:32 pm

[Plugin] Help Me

Post by paprzyk » Wed May 21, 2008 2:54 pm

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

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Wed May 21, 2008 7:22 pm

Search the AMXx forums for how to prevent weapon pickup
Image

No support via PM or Email

paprzyk
Peon
Posts: 8
Joined: Wed May 14, 2008 2:32 pm

Post by paprzyk » Thu May 22, 2008 12:38 am

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

User avatar
Geesu
<b>King of the world!</b>
Posts: 3159
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu » Fri May 23, 2008 7:21 am

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
No Support via PM

Post Reply