Lirbo

Untitled

Feb 4th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public OnGameModeInit()
  2. {
  3. new MoneyPickup
  4. MoneyPickup = CreatePickup(1274, 1, X, Y, Z, -1); // 1274 = Dollar Pickup | 1 = Never Disappear | X = X Position | Y = Y Position | Z = Z Position | -1 = Appear in every virtual world
  5. return 1;
  6. }
  7.  
  8. public OnPlayerPickUpPickup(playerid, pickupid)
  9. {
  10. if(pickupid == MoneyPickup){ // If player stand on the dollar pickup
  11. GivePlayerMoney(playerid,1000); // Give player $1,000 (Will be given every second)}
  12. return 1;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment