SHARE
TWEET

Untitled

a guest Sep 19th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. velikiObjekti( id ) {
  2.     switch( id ) {
  3.         case 7584, 8395, 9901, 6863: return true;
  4.     }
  5.     return false;
  6. }
  7.  
  8. srednjiObjekti( id ) {
  9.     switch( id ) {
  10.         case 18981, 19377, 18766: return true;
  11.     }
  12.     return false;
  13. }
  14.  
  15.  
  16. YUB_CreateDynamicObject( objid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 300.0, Float:drawdistance = 300.0, areaid = -1, priority = 0 )
  17. {
  18.     if( velikiObjekti( objid ) ) {
  19.         streamdistance = 800.0;
  20.         drawdistance = 800.0;
  21.         priority = 8;
  22.     }
  23.     else if( srednjiObjekti( objid ) ) {
  24.         streamdistance = 500.0;
  25.         drawdistance = 500.0;
  26.         priority = 6;
  27.     }
  28.    
  29.     return CreateDynamicObject( objid, x, y, z, rx, ry, rz, worldid, interiorid, playerid, streamdistance, drawdistance, areaid, priority );
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top