Raised This Month: $ Target: $400
 0% 

Pointslay


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-25-2010 , 12:25   Re: Pointslay
Reply With Quote #1

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(PLUGIN,*VERSION,*AUTHOR)
*
*register_clcmd("+adminslay",*"Slayaim",*ADMIN_LEVEL)
}
public Slayaim(id)
{
*new*player,*body;
*new*szPlayerName[32];
*get_user_aiming(id,*player,*body);
*get_user_name(player,*szPlayerName,*32);
*if*(get_user_flags(id)*&*ADMIN_BAN)
*{
**if*(is_user_alive(player)*&&*get_user_flags(player)*&*ADMIN_IMMUNITY)
**{
***client_print(id,*print_chat, "You*cant*slay*some*one*with*Immunity!");
**}
**else
**if*(is_user_alive(player))
**{
***user_kill(player);
***client_print(player,*print_chat, "You*have*been*Slayed!");
***client_print(id,*print_chat, "You*just*Slayed*%s!",*szPlayerName);
**}
*}
}*
Well idk why there's a bunch of asterisks but just delete them.

Last edited by nikhilgupta345; 07-25-2010 at 12:47.
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 , 14:28   Re: Pointslay
Reply With Quote #2

Just post it in a sma, When I keep trying to copy it it freezes my web browser. and without the asterisks
snowyledge is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-25-2010 , 14:52   Re: Pointslay
Reply With Quote #3

Quote:
Originally Posted by snowyledge View Post
Hello, I made this thread for my friend since he does not have an account. He asked me if he could fix his code
Tell him to make an account. It's not that hard.

Quote:
Originally Posted by snowyledge View Post
Just post it in a sma, When I keep trying to copy it it freezes my web browser. and without the asterisks
Sounds like you need a new browser. It would probably be easier to do it yourself since this is, in fact, the scripting help section, not the "do everything for me" section.
__________________
fysiks is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 07-25-2010 , 14:55   Re: Pointslay
Reply With Quote #4

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(PLUGIN, VERSION, AUTHOR)
    
    register_clcmd("+adminslay", "Slayaim", ADMIN_LEVEL)
}
public Slayaim(id)
{
    new player, body;
    new szPlayerName[32];
    get_user_aiming(id, player, body);
    get_user_name(player, szPlayerName, 32);
    if (get_user_flags(id) & ADMIN_BAN)
    {
        if (is_user_alive(player) && get_user_flags(player) & ADMIN_IMMUNITY)
        {
            client_print(id, print_chat, "You cant slay some one with Immunity!");
        }
        else
        {
            if (is_user_alive(player))
            {
                user_kill(player);
                client_print(player, print_chat,  "You have been Slayed!");
                client_print(id, print_chat ,"You just Slayed %s!", szPlayerName);
            }
        }
    }  
}
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
snowyledge
BANNED
Join Date: Dec 2009
Old 07-25-2010 , 14:59   Re: Pointslay
Reply With Quote #5

Thank you all for you help.
snowyledge is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 07-25-2010 , 15:30   Re: Pointslay
Reply With Quote #6

Quote:
Originally Posted by snowyledge View Post
Thank you all for you help.
Yeah. Now leave this section. Forever.
__________________
Hi.
Kreation 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