Advertisement
nomy

Untitled

Sep 30th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.45 KB | None | 0 0
  1. public OnPluginStart()
  2. {
  3.     HookEvent("flashbang_detonate", Event_FlashbangDetonate);
  4. }
  5.  
  6. public Action:Event_FlashbangDetonate(Handle:event, const String:name[], bool:dontBroadcast)
  7. {
  8.     new client = GetClientOfUserId(GetEventInt(event,"userid"));
  9.    
  10.     if(IsClientInGame(client))
  11.     {
  12.         if(IsPlayerAlive(client))
  13.         {
  14.             GivePlayerItem(client, "weapon_flashbang");
  15.             FakeClientCommandEx(client, "use weapon_knife");
  16.         }
  17.     }
  18.    
  19.     return Plugin_Continue;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement