Raised This Month: $51 Target: $400
 12% 

[REQUEST] - Last player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Yusochan
Member
Join Date: Sep 2021
Location: Algeria
Old 10-14-2021 , 18:34   [REQUEST] - Last player
Reply With Quote #1

Hello !

I need a plugin for the last (ct) gets the xm1014 and a deagle and $3000 / 25hp / 25ap. The (tt) gets a knife that I will add the model and the script by myself and 3000 $ / 25hp / ap

Thx for the help and please i need it !

sorry for my impatience.
Yusochan is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-15-2021 , 23:22   Re: [REQUEST] - Last player
Reply With Quote #2

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

new const Version[] = "0.1";

enum LastStuff
{
    
LastWeapon16 ],
    
LastMoney,
    
LastHP,
    
LastAP
}

new 
lsStuffCsTeams ][ LastStuff ] = 
{
    { 
"" },
    { 
"weapon_knife" 3000 25 25 },  //T
    
"weapon_xm1014" 3000 25 25 },  //CT
    
"" }
};

public 
plugin_init() 
{
    
register_plugin"Last Player Stuff" Version "bugsy" );
    
    
RegisterHamHam_Killed "player" "PlayerKilled" );
}

public 
PlayerKillediVictim iKiller iShouldGib )
{
    new 
iPlayersCsTeams ][ 32 ] , iTeamCountsCsTeams ] , iPlayer;

    for ( new 
CsTeams:csTeam CS_TEAM_T csTeam <= CS_TEAM_CT csTeam++ )
    {
        
get_playersiPlayerscsTeam ] , iTeamCountscsTeam ] , "ae" , ( csTeam == CS_TEAM_T ) ? "TERRORIST" "CT" );
        
        if ( 
iTeamCountscsTeam ] == )
        {
            
iPlayer iPlayerscsTeam ][ ];
            
            
strip_user_weaponsiPlayer );
            
give_itemiPlayer lsStuffcsTeam ][ LastWeapon ] );
            
cs_set_user_moneyiPlayer cs_get_user_moneyiPlayer ) + lsStuffcsTeam ][ LastMoney ] );
            
set_user_healthiPlayer get_user_healthiPlayer ) + lsStuffcsTeam ][ LastHP ] );
            
cs_set_user_armoriPlayer cs_get_user_armoriPlayer ) + lsStuffcsTeam ][ LastAP ] , CS_ARMOR_VESTHELM );

            
client_printiPlayer print_chat "* [Last Player] Given %s, %d money, %d hp, %d armor" lsStuffcsTeam ][ LastWeapon ][ ] , lsStuffcsTeam ][ LastMoney ] , lsStuffcsTeam ][ LastHP ] , lsStuffcsTeam ][ LastAP ] );
        }
    }    

__________________

Last edited by Bugsy; 10-18-2021 at 22:13. Reason: Forgot weapons
Bugsy is offline
Yusochan
Member
Join Date: Sep 2021
Location: Algeria
Old 10-19-2021 , 06:37   Re: [REQUEST] - Last player
Reply With Quote #3

Thank you so much ! It's perfect
Yusochan 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 19:12.


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