Raised This Month: $ Target: $400
 0% 

Help with first work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Storas1337
Senior Member
Join Date: Apr 2009
Location: Lithuania
Old 05-22-2014 , 17:40   Help with first work
Reply With Quote #1

Hello im making my first plugin and i need some advice on it
main idea is that admin write in chat hp <name> <hpamount> and it gives
how to make it what am doing wrong? i know that i can make it with set_task but then i cant enter specified amount
please as much simplest solution

Code:
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_concmd("hp", "hppakvietimas", ADMIN_BAN, "hp amount")
	register_event("Health", "gyv", "be", "1>0");
	
	
	
	
	public hpkvietimas(client, gyv)
	{
		if(get_user_flags(id) & ADMIN_BAN)
		{
			set_user_health(id , gyv)
			
		}

Last edited by Storas1337; 05-26-2014 at 15:22.
Storas1337 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:35.


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