Raised This Month: $ Target: $400
 0% 

TFC Plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Waylay
Member
Join Date: Feb 2006
Old 03-27-2006 , 12:43   TFC Plugin.
Reply With Quote #1

Iv'e made my 4rd plugin..it works,almost..here's the code:

Code:
#include <amxmodx>
#include <fun>
#include <tfcx>

public plugin_init() {
register_plugin("conc_rockets","1.00","Waylay")
register_event("ResetHUD", "giverl", "be")
register_clcmd("say needrocket", "giverl")
}

public giverl(id){
user_has_weapon(id,TFC_WPN_RPG,1)
}
Just a small 1...But it works to get the weapon..but i cant choose it to use it !!
Waylay is offline
Send a message via MSN to Waylay
ObscureAlucard
Junior Member
Join Date: Mar 2006
Location: Washington
Old 03-29-2006 , 23:49  
Reply With Quote #2

what do you mean? choose the weapon and use it?
__________________
ObscureAlucard is offline
Send a message via AIM to ObscureAlucard
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-30-2006 , 03:07  
Reply With Quote #3

I think that sets your selected weapon and doesent give you any weapon.
Use give_item(id, "weapon_?") ( if it works for TFC )
[ --<-@ ] Black Rose is offline
Waylay
Member
Join Date: Feb 2006
Old 03-30-2006 , 13:56  
Reply With Quote #4

When i do i get 1 error.
Waylay is offline
Send a message via MSN to Waylay
NewUser
Member
Join Date: Mar 2006
Location: over there
Old 03-30-2006 , 15:05  
Reply With Quote #5

Quote:
Originally Posted by Waylay
When i do i get 1 error.
Tell us the error?
__________________
LEWL.
NewUser is offline
Waylay
Member
Join Date: Feb 2006
Old 03-31-2006 , 07:09  
Reply With Quote #6

Code:
/home/users/amxmodx/tmp3/phpvbCHoV.sma(12) : error 037: invalid string (possibly non-terminated string) /home/users/amxmodx/tmp3/phpvbCHoV.sma(12 -- 13) : warning 215: expression has no effect
Waylay is offline
Send a message via MSN to Waylay
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-31-2006 , 08:19  
Reply With Quote #7

Try this:

Code:
#include <amxmodx> #include <amxmisc> #include <tfcx> public plugin_init() {     register_plugin("Conc Rockets","1.0","Hawk552")     register_clcmd("say needrocket","fnSayNeedRocket") } public fnSayNeedRocket(id)     if(user_has_weapon(id,TFC_WPN_RPG))         tfc_setbammo(id,TFC_AMMO_ROCKETS,tfc_getbammo(id,TFC_AMMO_ROCKETS) + 1)
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Waylay
Member
Join Date: Feb 2006
Old 04-01-2006 , 02:47  
Reply With Quote #8

ty think it worked
Waylay is offline
Send a message via MSN to Waylay
Waylay
Member
Join Date: Feb 2006
Old 04-01-2006 , 12:00  
Reply With Quote #9

Nope
Waylay is offline
Send a message via MSN to Waylay
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-01-2006 , 12:33  
Reply With Quote #10

Quote:
Originally Posted by Waylay
Nope
what
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



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 16:46.


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