Raised This Month: $ Target: $400
 0% 

Little problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-20-2011 , 03:56   Little problem
Reply With Quote #1

Hi everyone i'm a noob plugin scripter and my home language is lithunian but i will try to explain it. So here we go, the problem is that my plugin doesn't work when i include cstrike module , i tried to reinstall amxmodx 1.8.1 but it still gives me shit, Plz help me . And i noticed that the plugin compiles but doesn't work and every other plugins with cstrke module doesn't work too when i compile

Heres my code:
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fun>
#include <cstrike>
#define PLUGIN "My first plugin"
#define VERSION "1.0"
#define AUTHOR "-=3rn1s=-"
new kaina

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("say /test", "Boost")
	kaina = register_cvar("amx_boost_price", "800")
}


public Boost(id)
{
	new pinigai = cs_get_user_money(id)
	if(pinigai >= get_pcvar_num(kaina))
	{
	set_hudmessage(50, 255, 75, -1.0, -1.0)
	show_hudmessage(id, "Tu nusipirkai Boost'a")
	set_user_health(id, 150)
	set_user_gravity(id,0.7)
	}
	else
	{
	set_hudmessage(0, 255, 0, -1.0, -1.0)
	show_hudmessage(id, "Tau neuztenka pinigu, Boost kainuoja 800$")
	}
	
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/

Last edited by usaexelent; 06-20-2011 at 04:00. Reason: forgot to include code
usaexelent is offline
Send a message via Skype™ to usaexelent
 



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


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