Raised This Month: $ Target: $400
 0% 

I want Only admins can use this plugin but I can't help pls


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Porta0123
Member
Join Date: Apr 2014
Location: Spain
Old 07-02-2014 , 13:34   Re: I want Only admins can use this plugin but I can't help pls
Reply With Quote #1

Code:
#include <amxmodx> #include <fun> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" #define FLAG ADMIN_KICK new pnum new players[32], tempid; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say /100le","can") } public can(player) {     if(get_user_flags(player) & FLAG)     {     get_players(players, pnum);         for(new i = 0; i < pnum; i++)     {           tempid = players[i];         if(get_user_team(tempid) == 1 && is_user_alive( tempid ))         {              set_user_health(tempid, 100)         }     }     } }
this heal all tt players

Last edited by Porta0123; 07-02-2014 at 13:36.
Porta0123 is offline
lugat2001
New Member
Join Date: Apr 2013
Old 07-02-2014 , 14:16   Re: I want Only admins can use this plugin but I can't help pls
Reply With Quote #2

Quote:
Originally Posted by Porta0123 View Post
Code:
#include <amxmodx> #include <fun> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" #define FLAG ADMIN_KICK new pnum new players[32], tempid; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say /100le","can") } public can(player) {     if(get_user_flags(player) & FLAG)     {     get_players(players, pnum);         for(new i = 0; i < pnum; i++)     {           tempid = players[i];         if(get_user_team(tempid) == 1 && is_user_alive( tempid ))         {              set_user_health(tempid, 100)         }     }     } }
this heal all tt players
ty can I publish this on my blog?

Last edited by lugat2001; 07-02-2014 at 14:17.
lugat2001 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 21:15.


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