whiplk

[CODE] - CreateVehicle ( fast version )

May 1st, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.67 KB | None | 0 0
  1. //Mesma função do CreateVehicle, só que mais rápido.
  2. //Créditos: Jeffrey_Hatrix
  3.  
  4. stock _CreateVehicle ( vehtype, Float:x, Float:y, Float:z, Float:r, c1, c2, spawn_time )
  5. {
  6.     static type , Float: pos_ [ 4 ] , color [ 2 ] , spawn ;
  7.     color [ 0 ] = c1 , color [ 1 ] = c2 , pos_ [ 0 ] = x , pos_ [ 1 ] = y , pos_ [ 2 ] = z , pos_ [ 3 ] = r , type = vehtype , spawn = spawn_time ;
  8.     return ( CallLocalFunction ( "CreateVehicle" , "iffffiii" , type , pos_ [ 0 ] , pos_ [ 1 ] , pos_ [ 2 ] , pos_ [ 3 ] , color [ 0 ] , color [ 1 ] , spawn ) ) ;
  9. }
  10.  
  11. #define CreateVehicle _CreateVehicle
  12.  
  13. //método de uso:
  14.  
  15. CreateVehicle ( modelo , x , y , z , rotation , cor 1 , cor 2 , spawn time ) ;
Advertisement
Add Comment
Please, Sign In to add comment