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

Deagle with only 2 bullets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TrullSin
Junior Member
Join Date: Jun 2018
Old 06-09-2018 , 20:32   Deagle with only 2 bullets
Reply With Quote #1

Does anyone knows how to make the deagle have only 2 bullets every rounds?
TrullSin is offline
LenHard
Member
Join Date: Jan 2016
Old 06-09-2018 , 21:27   Re: Deagle with only 2 bullets
Reply With Quote #2

PHP Code:
#include <sourcemod>
#include <sdktools_functions>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
HookEvent("player_spawn"Event_PlayerSpawnEventHookMode_Post);    
}

public 
void Event_PlayerSpawn(Event hEvent, const char[] sEventNamebool bDontBroadcast)
{
    
CreateTimer(0.5Timer_DelayhEvent.GetInt("userid"), TIMER_FLAG_NO_MAPCHANGE);
}

public 
Action Timer_Delay(Handle hTimerany iUser)
{
    
int client GetClientOfUserId(iUser);
    
    if (
client <= MaxClients && IsClientInGame(client))
    {
        
int iWeapon GivePlayerItem(client"weapon_deagle");
        
SetEntProp(iWeaponProp_Send"m_iClip1"2);
        
SetEntProp(iWeaponProp_Send"m_iPrimaryReserveAmmoCount"0);
    }    

__________________
Currently accepting private work
Contact

Last edited by LenHard; 06-09-2018 at 21:34.
LenHard 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 09:11.


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