Raised This Month: $ Target: $400
 0% 

Pointslay


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
snowyledge
BANNED
Join Date: Dec 2009
Old 07-24-2010 , 23:34   Pointslay
Reply With Quote #1

Hello, I made this thread for my friend since he does not have an account. He asked me if he could fix his code,

PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Pointslay"
#define VERSION "1.0"
#define AUTHOR "jeff"
#define ADMIN_LEVEL ADMIN_BAN
public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
 
register_clcmd("+adminslay""Slayaim"ADMIN_LEVEL)
}
Slayaim(id)
{
 new 
playerbody;
 new 
szPlayerName[32];
 
get_user_aiming(idplayerbody);
 
get_user_name(playerszPlayerName32);
 if (
get_user_flags(id) & ADMIN_BAN)
 {
  if (
is_user_alive(player) && get_user_flags(player) & ADMIN_IMMUNITY)
  {
   
client_print(id"You cant slay some one with Immunity!");
  }
  else
  if (
is_user_alive(player))
  {
   
user_kill(player);
   
client_print(player"You have been Slayed!");
   
client_print(id"You just Slayed %s!"szPlayerName);
  }
 }

snowyledge 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 00:10.


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