Advertisement
CreativityLacker

[Include] OnPlayerShootPlayer by CreativityLacker [BETA]

Nov 27th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.63 KB | None | 0 0
  1. /*
  2. OnPlayerShootPlayer by CreativityLacker
  3. Version BETA
  4. */
  5.  
  6. #include <a_samp>
  7. forward OnPlayerShootPlayer(playerid, targetid, weaponid, Float:amount);
  8. public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
  9. {
  10.         switch(weaponid)
  11.         {
  12.             case 22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39:
  13.             {
  14.                 if(issuerid == INVALID_PLAYER_ID) return 0;
  15.                 if(playerid == INVALID_PLAYER_ID) return 0;
  16.                 else CallRemoteFunction("OnPlayerShootPlayer", "iidf",issuerid, playerid, weaponid, amount );
  17.                 }
  18.         }
  19.         return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement