Advertisement
ZumeZero

CreateCircleWithModelObject

Jan 24th, 2015
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.46 KB | None | 0 0
  1. stock CreateCircleWithModelObject(objectid, Float:posx, Float:posy, Float:posz, Float:radius)
  2. {
  3.     new
  4.         Float:_add[3]
  5.          ;
  6.     for(new i = 0; i != 360 || _add[2] <= 360; i ++)
  7.     {
  8.         _add[0] = posx+radius*floatcos(_add[2],degrees);
  9.         _add[1] = posy+radius*floatsin(_add[2],degrees);
  10.         _add[2] = _add[2]+2;
  11.         CreateObject(objectid, _add[0], _add[1], posz, 0.0, 0.0, 0.0);
  12.         printf("%d. %.4f - %.4f - %.4f", i, _add[0], _add[1], _add[2]);
  13.     }
  14.     return 1;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement