Raised This Month: $ Target: $400
 0% 

Help With Makeing Plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 01-17-2005 , 09:26   Help With Makeing Plugins
Reply With Quote #1

Hey, First thing i got to say is thank you for makeing amxx and everyone who has made plugins good job, now i was wondering how do make them, if there i a program. Plz Help Because I have a lot of great plugin idea and ireally would like to make them come to life Thank you , FiRe
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 01-17-2005 , 11:09  
Reply With Quote #2

i dont think there is a program.. u can look. I just code mine using notepad or wordpad.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 01-17-2005 , 12:28  
Reply With Quote #3

i mite sound like a nub but i have no idea how to code.. if you could explain.. that would be great! , FiRe
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-17-2005 , 13:22  
Reply With Quote #4

Sticky: Helpful Stuff / Read here first!
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 01-17-2005 , 15:18  
Reply With Quote #5

There are programs for scripting in AMX Mod X.
1. Custom ones like Small ED ( You can find on this forum )
2. Notepad

I'd use Notepad if I were you , it's really good , plus it's already on your computer. And trust me , nobody can explain how to script in AMX Mod X in one post , but I will give you some tips.

The best ways to learn :
1. Read as many tutorials you can find on this forum ( search for them and read the one in the AMX Mod X manual www.amxmodx.org/doc )
2. Read other peoples plugins in the Plugins section , look at the code and see how they do certain things , take each function at a time , because each function does something according to how it's registered in the Public Plugin_Init() )
3. Ask specific questions in the Scripting Help section of the forum about how to do something or if you want to know what does what )
4. Read the Natives / Functions in the include files in your Include folder in the Amxx / Amxmodx folder or you can go to www.amxmodx/funcwiki.php
5. Always know that nobody is going to baby sit you and hold your hand and talk to you on AIM or something constantly helping you , you will have to learn yourself , and don't give up just because it seems hard at first )
Peli is offline
Send a message via MSN to Peli
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 01-18-2005 , 15:55  
Reply With Quote #6

i read as many as i can and now im working on something called weapongiver,(Credit goes to Dizzy[Nadegiver]) but i keep getting errors please help
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
f1del1ty.oXi
Veteran Member
Join Date: Nov 2004
Old 01-18-2005 , 16:36  
Reply With Quote #7

you can tell them the errors all you want and cry and not do anything, but without code, they can't help you.
__________________
f1del1ty.oXi is offline
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 01-18-2005 , 16:37   This is the error..... i get
Reply With Quote #8

L 01/18/2005 - 133:22: [AMXX] Native error in "give_item" on line 54 (file "phpMxBzFy.sma").
L 01/18/2005 - 133:22: [Fun] Item "weapon_Scout" failed to
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 01-18-2005 , 16:38   here is the code THIS IS ALL CREDITED TO DIZZY!
Reply With Quote #9

#include <amxmodx>
#include <fun>

new bool:hasloaned[32]

public plugin_init() {
register_plugin("WeaponGiver","1.0","Dizzy")
register_cvar("sv_nade","1")
register_clcmd("say /smoke","Smoke")
register_clcmd("say /he","HE")
register_clcmd("say /flash","Flash")
register_clcmd("say /Scout","Scout")
register_event("ResetHUD","roundchange","b")
}

public client_connect(id) {
hasloaned[id] = false
}
public client_disconnect(id) {
hasloaned[id] = false
}

public Smoke(id) {
if (hasloaned[id])
return PLUGIN_HANDLED
if (get_cvar_num("sv_nade") !=0) {
give_item(id,"weapon_smokegrenade")
}
return PLUGIN_HANDLED
}

public HE(id) {
if (hasloaned[id])
return PLUGIN_HANDLED
if (get_cvar_num("sv_nade") !=0) {
give_item(id,"weapon_hegrenade")
}
return PLUGIN_HANDLED
}

public Flash(id) {
if (hasloaned[id])
return PLUGIN_HANDLED
if (get_cvar_num("sv_nade") !=0) {
give_item(id,"weapon_flashbang")
}
return PLUGIN_HANDLED
}

public Scout(id) {
if (hasloaned[id])
return PLUGIN_HANDLED
if (get_cvar_num("sv_nade") !=0) {
give_item(id,"weapon_Scout")
}
return PLUGIN_HANDLED
}

public roundchange(id)
{
hasloaned[id] = false
return PLUGIN_CONTINUE
}
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
Damocles
Member
Join Date: Jan 2005
Old 01-18-2005 , 17:07  
Reply With Quote #10

dude may i suggest using the 'Small' syntax tags when you post some code, it makes it MUCH easier to read, and it keeps your indentation. That code is extremely hard to follow as it is.

also based on where your compile error is, wouldnt it be at a guess, the fact that youve got

give_item(id,"weapon_Scout")

shouldnt that be...

give_item(id,"weapon_scout")

p.s. i know no small, its just an observation
Damocles is offline
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 19:29.


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