SwiZzoR

Untitled

Apr 11th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.59 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new pPickup[MAX_PLAYERS],pMoney[MAX_PLAYERS],bool:HavePick[MAX_PLAYERS],Float:Pos[3];
  4.  
  5.  
  6. public OnPlayerDeath(playerid, killerid, reason)
  7. {
  8.     if(HavePick[playerid]) DestroyPickup(pPickup[playerid]);
  9.     GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  10.     pMoney[playerid] = GetPlayerMoney(playerid);
  11.     pPickup[playerid] = CreatePickup(1212,1,Pos[0],Pos[1],Pos[2]);
  12.     return HavePick[playerid] = true;
  13. }
  14.  
  15. public OnPlayerPickUpPickup(playerid,pickupid)
  16. {
  17.     for(new i,j = GetMaxPlayers();i<j;i++) \
  18.     if(pickupid == pPickup[i]) GivePlayerMoney(playerid,pMoney[i]), HavePick[i] = true;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment