Advertisement
ZumeZero

[Function] GivePlayerMultipleWeapon

Aug 2nd, 2014
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.67 KB | None | 0 0
  1. stock GivePlayerMultipleWeapon(playerid, weapon, bullets, weapon1 = 0, bullets1 = 0, weapon2 = 0, bullets2 = 0, weapon3 = 0, bullets3 = 0, weapon4 = 0, bullets4 = 0, weapon5 = 0, bullets5 = 0)
  2. {
  3.     GivePlayerWeapon(playerid, weapon, bullets);
  4.     if(weapon1 != 0) GivePlayerWeapon(playerid, weapon1, bullets1);
  5.     if(weapon2 != 0) GivePlayerWeapon(playerid, weapon2, bullets2);
  6.     if(weapon3 != 0) GivePlayerWeapon(playerid, weapon3, bullets3);
  7.     if(weapon4 != 0) GivePlayerWeapon(playerid, weapon4, bullets4);
  8.     if(weapon5 != 0) GivePlayerWeapon(playerid, weapon5, bullets5);
  9. }
  10.  
  11. /* Example:
  12.  
  13.     GivePlayerMultipleWeapon(playerid, 5, 1, 25, 999, 24, 999, 29, 999, 31, 999, 34, 999); */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement