Raised This Month: $ Target: $400
 0% 

suprise


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-20-2005 , 16:51   suprise
Reply With Quote #1

i want to make a suprise plugin and i need a start i made this little code not finsihed but it isn't working i'm new to making plugins i ported some and
can someone tell's me what
Code:
return PLUGIN_CONITNUE return PLUGIN_HANDLED
means and what does this means a little better explained like what does global event do and specified maybe that is my problem
Code:
* "a" - global event. * "b" - specified. * "c" - send only once when repeated to other players. * "d" - call if is send to dead player. * "e" - to alive.
here is my plugin
Code:
#include <amxmodx> #include <fun> #define sv_maxspeed 1000 new kills[33] = {0,...}; new deaths[33] = {0,...}; new Float:speed = 1000 public plugin_init() {     register_plugin("suprise","1.0","Nightscream")     register_event("Kill10","Ksuprise_message","b")     register_event("Death10","Dsuprise","b")         return PLUGIN_CONTINUE } public Ksuprise_message(id) {     if (kills[id] == 9) {         client_print(id, print_chat,"[AMXX]if you kill 1 person without get killed you get a suprise");     } } public Dsuprise(id) {     if ((deaths[id] == 10)&(kills[id] < 10)) {         set_user_maxspeed(id,speed);         client_print(id,print_chat,"[AMXX]you have superspeed for one round");     } }
compiles with no errors 1 warning
Quote:
//AMXXSC compile.exe
// by the AMX Mod X Dev Team


//// suprise.sma
// C:\Documents and Settings\Ward1\Bureaublad\counter-strike\addons\amxmodx\scri
pting\suprise.sma(10) : warning 213: tag mismatch
Quote:
Originally Posted by debug
L 04/20/2005 - 22:52:00: [AMXX] Invalid event (name "Kill10") (plugin "suprise.amxx")
L 04/20/2005 - 22:52:00: [AMXX] Native error in "register_event" on line 12 (file "suprise.sma"
__________________
- Bye bye!
nightscreem is offline
 



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:50.


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