Advertisement
ColdWar-Pawn

Jailbreak KnifeModels

Dec 27th, 2012
754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.77 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include < amxmodx >
  4. #include < fakemeta >
  5. #include < hamsandwich >
  6.  
  7. new const plugin_info[ 3 ][ ] = {
  8.     "Guards Shocker",
  9.     "v0.1",
  10.     "+ColdWar"
  11. }
  12.  
  13. enum _:Knifes
  14. {
  15.     NO_TEAM,
  16.     T,
  17.     CT,
  18.     SPEC
  19. }
  20. new const szKnifes[ Knifes ][ ] = {
  21.     "",
  22.     "models/jb/shocker.mdl",
  23.     "models/jb/box.mdl",
  24.     ""
  25. }
  26.  
  27. public plugin_init() {
  28.     register_plugin( plugin_info[ 0 ] , plugin_info[ 1 ] , plugin_info[ 2 ] )
  29.    
  30.     RegisterHam( Ham_Item_Deploy, "weapon_knife", "Ham_ItemDeploy_Post", true );
  31. }
  32.  
  33. public Ham_ItemDeploy_Post( const iEnt )
  34. {
  35.     new iOwner = pev( iEnt, pev_owner );
  36.     if( get_user_team( iOwner ) != 1 && get_user_team( iOwner ) != 2 )
  37.         return;
  38.     set_pev( iOwner, pev_viewmodel, szKnifes[ get_user_team( iOwner ) ] );
  39.     return;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement