Raised This Month: $ Target: $400
 0% 

need help with plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zidd
Junior Member
Join Date: Dec 2004
Location: 66.199.236.61:27015
Old 04-01-2005 , 09:43   need help with plugin
Reply With Quote #1

can someone help me with this plugin its my first attempt at a plugin im getting compile errors when i try to compile it
Code:
//Vampire Mod //By Zidd //A Version Half-life engine version of an unreal tournament mutator #include <amxmodx> #include <amxmisc> #include <fun> public vampire (id) {         new makekill (get_user_frags)     new health (get_user_health)         if (health=1) {     client_print (1,print_center,"You Thirst For Blood Go Get Some Kills For More HP!")     set_task (0.5,"vampire",id)     return PLUGIN_HANDLED     }     if (health<=2) {         set_user_health (health -1)         set_task (0.5,"vampire",id)         return PLUGIN_HANDLED             }     if (makekill +1) {         set_user_health (health +10)         client_print (1,print_center,"You Get 10HP For The Kill You Just Made")         set_task (0.5,"vampire",id)         return PLUGIN_HANDLED             }       } public plugin_init {     register_plugin("Vampire Mode", "0.01", "Zidd")     register_clcmd("amx_vampire", "vampire", " : toggles Vampire mode"     }
Zidd is offline
Send a message via AIM to Zidd
Zidd
Junior Member
Join Date: Dec 2004
Location: 66.199.236.61:27015
Old 04-01-2005 , 16:55  
Reply With Quote #2

no help at all?
Zidd is offline
Send a message via AIM to Zidd
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 04-01-2005 , 17:14  
Reply With Quote #3

What you wrote:

Code:
    new makekill (get_user_frags)     new health (get_user_health)


I suggest you use this:

Code:
    new makekill[32]     get_user_frags(id,makekill,31)     new health[32]     get_user_health(id,health,31)

Try that, im not sure if it works, but try at least ;)
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
Zidd
Junior Member
Join Date: Dec 2004
Location: 66.199.236.61:27015
Old 04-01-2005 , 17:19  
Reply With Quote #4

well im new at this and im not really shall i say "good at" coding and there really is a lack of tutorials around that i can find anyways
Zidd is offline
Send a message via AIM to Zidd
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 04-01-2005 , 21:44  
Reply With Quote #5

Quote:
Originally Posted by Zidd
well im new at this and im not really shall i say "good at" coding and there really is a lack of tutorials around that i can find anyways
Theres no need to defend urself. No one attacked you an the only response so far is actual help - so i dont see why the need for a defensive response.

at any rate - looks like a fun plugin - good luck and keep on truckin'!
pendragon is offline
Send a message via ICQ to pendragon
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:59.


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