10.09.2009, 07:36
pawn Код:
#include <a_samp>
new tunnel;
new Float:degree=0.0;
new radius=50;
public OnFilterScriptInit()
{
new
Float:X = floatmul(floatcos(degree, degrees),radius),
Float:Temp = (radius * radius) - floatpower(X, 2),
Float:Y = floatsqroot(Temp),
Float:Px = floatadd(0, X),
Float:Py = floatadd(0, Y);
for(new Objects; Objects < 180; Objects++)
{
tunnel = CreateObject(13666, Px, Py, 3.000, 0, 0, 0, 500);
SetObjectRot(tunnel,0,0,degree);
if(degree < 360)
{
degree++;
}
}
return 1;
}