Raised This Month: $ Target: $400
 0% 

My First Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nwQ
Junior Member
Join Date: Jul 2009
Old 07-26-2009 , 07:43   My First Plugin
Reply With Quote #1

Hello. It's my first plugin, and I don't know, what I do wrong
Can anybody help me?
Quote:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>

#define PLUGIN "IDK"
#define VERSION "1.0"
#define AUTHOR "nwQ"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /lol","hpa")
register_clcmd("say lol","hpa")
}
public hpa(id) {
new Heath = get_user_health(id);
new randomNum = random_num(1, 10);
if(!is_user_alive(id))
client_print(id,print_center,"Jestes martwy stary xP");
switch(randomNum)
{
case 0:
{
give_item(id,"ak47");
client_print(0,print_chat,"Dostales AK xD");

}
case 1:
{
set_user_health(id,Heath + 149);
client_print(id,print_center,"Dostales zycie xP");
}
case 2:
{
give_item(id,"m4a1");
client_print(id,print_chat,"Dostales M4 xD")
}
}
return PLUGIN_HANDLED
}
Pleeeaaseeee
nwQ 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 18:17.


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