Raised This Month: $ Target: $400
 0% 

Pointslay


Post New Thread Reply   
 
Thread Tools Display Modes
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
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-24-2010 , 23:47   Re: Pointslay
Reply With Quote #2

First, Slayaim must be public.
Second, it is always best to provide the errors that you need assistance with.
Third, http://amxmodx.org/funcwiki.php?go=func&id=22
Fourth, I thought you claimed you make plugins?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-25-2010 , 00:05   Re: Pointslay
Reply With Quote #3

Wait, is that your friend's original code? Or is that his "fixed" code?
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-25-2010 , 00:11   Re: Pointslay
Reply With Quote #4

Quote:
Originally Posted by nikhilgupta345 View Post
Wait, is that your friend's original code? Or is that his "fixed" code?
If that is the fixed one, i would like to see the original
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
snowyledge
BANNED
Join Date: Dec 2009
Old 07-25-2010 , 11:27   Re: Pointslay
Reply With Quote #5

This is the original drekes.
snowyledge is offline
snowyledge
BANNED
Join Date: Dec 2009
Old 07-25-2010 , 11:30   Re: Pointslay
Reply With Quote #6

Its a warning, and when my friend does the command "+adminslay" it doesnt work.

Warning:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
C:\Users\jeff\Desktop\jeffs compiler\pointslay.sma(3 : warning 203: symbol is never used: "Slayaim"
Header size: 140 bytes
Code size: 144 bytes
Data size: 168 bytes
Stack/heap size: 16384 bytes; estimated max. usage=778 cells (3112 bytes)
Total requirements: 16836 bytes
1 Warning.
Done.
Compilation Time: 7.30 sec
No clue about that smiley thing or w.e why that showed up.

Last edited by snowyledge; 07-25-2010 at 11:32.
snowyledge is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-25-2010 , 11:36   Re: Pointslay
Reply With Quote #7

Umm do what yami old you to do. Make slayaim public and in the client_print put print_chat before the message..

Last edited by nikhilgupta345; 07-25-2010 at 11:40.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
snowyledge
BANNED
Join Date: Dec 2009
Old 07-25-2010 , 11:43   Re: Pointslay
Reply With Quote #8

My friend doesn't understand that.
snowyledge is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-25-2010 , 11:46   Re: Pointslay
Reply With Quote #9

Do it for him?
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
snowyledge
BANNED
Join Date: Dec 2009
Old 07-25-2010 , 12:00   Re: Pointslay
Reply With Quote #10

Could you just give me the sma with it, I only get the public part
snowyledge 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 00:10.


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