Advertisement
Guest User

Spawn UFO on everyone [C++]

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