SHARE
TWEET

Give knife

orayon Jun 5th, 2020 (edited) 872 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <fakemeta_util>
  4.  
  5. public plugin_init() {
  6.     register_plugin("Give knife", "0.1", "BiBi")
  7.    
  8.     RegisterHam( Ham_Spawn, "player", "fw_PlayerSpawn", 1 );
  9. }
  10.  
  11. public PlayerSpawn( id )
  12. {
  13.     if( !is_user_connected( id ) || !is_user_alive( id ) )
  14.         return 1;
  15.    
  16.     fm_strip_user_weapons( id );
  17.    
  18.     fm_give_item( id, "weapon_knife" );
  19.    
  20.     return 1;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top