Casino

xMANU4EVATKx/Nayjames123 -Attach Objects to all Players

Nov 2nd, 2012
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. void AttachObject()
  2. {
  3. int Test = 0, i=0;
  4. for (i = 0;i<16;i++)
  5. {
  6. if (!IS_NETWORK_PLAYER_ACTIVE(i)) continue;
  7. if (i == GET_PLAYER_INDEX()) continue;
  8. GET_PLAYER_CHAR(i, &Test);
  9. if(!DOES_CHAR_EXIST(Test)) continue;
  10. Object otmp;
  11. CREATE_OBJECT(0x6A9261FE,0.0,0.0,0.0,&otmp,true);
  12. ATTACH_OBJECT_TO_PED(otmp,Test,0,0.0,0.0,-0.11,0.0,0.0,3.0,true);
  13. }
  14. }
  15.  
  16. void main()
  17. {
  18. THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
  19.     while(1)
  20.     {
  21.   if(IS_GAME_KEYBOARD_KEY_JUST_PRESSED(30)) AttachObject();
  22.         WAIT(0);
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment