Advertisement
Guest User

Give everyone Cash GTA [C++]

a guest
May 24th, 2015
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. int playerCount = NETWORK::NETWORK_GET_NUM_CONNECTED_PLAYERS();
  2.  
  3. for(int i = 0; i < playerCount; i++) {
  4.  
  5.     Ped PlayerPed = PLAYER::GET_PLAYER_PED(i);
  6.         Vector3 PlayerPos = ENTITY::GET_ENTITY_COORDS(PlayerPed, false);
  7.         OBJECT::CREATE_AMBIENT_PICKUP(GAMEPLAY::GET_HASH_KEY("PICKUP_MONEY_MED_BAG"), PlayerPos.x, PlayerPos.y, PlayerPos.z, 0, 40000, 1, 0, 1);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement