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

Solved [CSGO] how i can replace weapon for player ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 12-18-2018 , 06:40   [CSGO] how i can replace weapon for player ?
Reply With Quote #1

hi guys!!
players every round get 1 medic kit and no limited!!
if player not used medic kit, it will be added number of medic kit and no limited!!
i want limited number of medic kit, if player not used medic kit removed it.
please help!!

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 event, const char[] namebool dontBroadcast

    
int iUser GetClientOfUserId(event.GetInt("userid")); 
    if (
IsClientInGame(iUser)) 
    { 
        
CreateTimer(0.7Timer_DelayiUser); // Delay to be safe 
    



public 
Action Timer_Delay(Handle timerany client

    if (
IsClientInGame(client)) 
    { 
        
GivePlayerItem(client"weapon_healthshot"); 
    } 


Last edited by Dr.Mohammad; 12-19-2018 at 15:01.
Dr.Mohammad is offline
 



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 14:27.


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