full for me ^^!

if(gInterface.VKF9_State != 0){
pDrawText(pTextThis(), 230,281, "[BẬT]", 0, 0, (LPINT)1, 0);
//pCursorX = 350; //pGetUserCoorX
//pCursorY = 225; // pGetUserCoorY

/*pCursorX = (int)pWinWidth / pWinHeightReal / 2;
pCursorY = (int)pWinWidth / pWinHeightReal / 2;*/

pCursorX = (int)pWinWidth / pWinWidthReal / 2;
pCursorY = (int)pWinHeight / pWinHeightReal / 2.1;

int radius;

(*(float*)gCamera.m_Address.Zoom <= 50)?radius = 120 -(*(float*)gCamera.m_Address.Zoom): (*(float*)gCamera.m_Address.Zoom >= 56)?radius = 120 -(*(float*)gCamera.m_Address.Zoom):radius = 110;

int alpha = 100;
static double angle = 0;
angle += 0.1; // or some other value. Higher numbers = circles faster

int Rand = rand() % 100;
double x;
double y;
//(Rand % 2 == 0)?
////ve hinh tron
x = cos(angle) * radius;
y = sin(angle) * radius;
////Rand % 3 == 0)?
//// //ve bong hoa
//// x = (radius - alpha) * (2+sin(radius*angle)) * cos(angle),
//// y = (radius - alpha) * (2+sin(radius*angle)) * sin(angle)
//:
//ve so 8
/* x = (cos(angle) * sin(angle) * radius) * (cos(angle) * cos(angle));
y = (sin(angle) * cos(angle) * radius) * (sin(angle) * sin(angle));*/
pCursorX -= x;
pCursorY -= y;
}
Demo
[Only registered and activated users can see links. ]
bài viết cần thêm
[Only registered and activated users can see links. ]