Raised This Month: $32 Target: $400
 8% 

/get Command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Taha_rajper
Member
Join Date: Jun 2021
Location: Under The Sea
Old 06-24-2022 , 02:12   /get Command
Reply With Quote #1

Hello, I Need a Plugin that if Player types /get give Player +100 HP, + 200 AP, Grenade Pack, 350 Speed and 650 Gravity
Taha_rajper is offline
TribalBlood
Member
Join Date: Oct 2020
Old 06-24-2022 , 13:48   Re: /get Command
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#include <cstrike>

new bool:PlayerSpeed[33];

public 
plugin_init()
{
    
register_clcmd("say /get""items");
    
RegisterHam(Ham_Player_PostThink"player""Speed"1);
    
register_logevent("logevent_round_end"2"1=Round_End");
}

public 
items(id)
{
    if(!
is_user_alive(id))
    {
        return 
PLUGIN_HANDLED;
    }

    
set_user_health(idget_user_health(id) + 100);
    
set_user_armor(idget_user_armor(id) + 200);
    
give_item(id"weapon_hegrenade");
    
give_item(id"weapon_flashbang");
    
cs_set_user_bpammo(idCSW_FLASHBANG2);
    
give_item(id"weapon_smokegrenade");
    
set_user_gravity(id0.65);
    
PlayerSpeed[id] = true;

    return 
PLUGIN_HANDLED;
}

public 
logevent_round_end()
{
    for(new 
iget_maxplayers(); i++)
    {
        
PlayerSpeed[i] = false;
    }
}

public 
Speed(id)
{
    if(
is_user_alive(id) && PlayerSpeed[id] == true)
    {
        
set_user_maxspeed(id350.0);
    }

__________________
My Steam Profile

- Online Rarely -
TribalBlood is offline
Taha_rajper
Member
Join Date: Jun 2021
Location: Under The Sea
Old 06-24-2022 , 14:29   Re: /get Command
Reply With Quote #3

Quote:
Originally Posted by TribalBlood View Post
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#include <cstrike>

new bool:PlayerSpeed[33];

public 
plugin_init()
{
    
register_clcmd("say /get""items");
    
RegisterHam(Ham_Player_PostThink"player""Speed"1);
    
register_logevent("logevent_round_end"2"1=Round_End");
}

public 
items(id)
{
    if(!
is_user_alive(id))
    {
        return 
PLUGIN_HANDLED;
    }

    
set_user_health(idget_user_health(id) + 100);
    
set_user_armor(idget_user_armor(id) + 200);
    
give_item(id"weapon_hegrenade");
    
give_item(id"weapon_flashbang");
    
cs_set_user_bpammo(idCSW_FLASHBANG2);
    
give_item(id"weapon_smokegrenade");
    
set_user_gravity(id0.65);
    
PlayerSpeed[id] = true;

    return 
PLUGIN_HANDLED;
}

public 
logevent_round_end()
{
    for(new 
iget_maxplayers(); i++)
    {
        
PlayerSpeed[i] = false;
    }
}

public 
Speed(id)
{
    if(
is_user_alive(id) && PlayerSpeed[id] == true)
    {
        
set_user_maxspeed(id350.0);
    }

Thank You But Can You Tell Me How Does That Gravity Works, if i want to change it for a better rank
Taha_rajper is offline
Reply


Thread Tools
Display Modes

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 04:38.


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