19.04.2011, 01:17
A couple months ago whilst testing the new 0.3c objects, I found this rather interestant and tried to make something fun off it.
Just place the ammount of stairs after 'Desired = ..' and it will create alot of loop stairs to the heaven with the new 0.3c object at the positions :P
p.s: Sorry if it looks abit cheesy, this code is like a couple months old.
Just place the ammount of stairs after 'Desired = ..' and it will create alot of loop stairs to the heaven with the new 0.3c object at the positions :P
p.s: Sorry if it looks abit cheesy, this code is like a couple months old.
pawn Код:
stock StairsToHeaven(Float:X, Float:Y, Float:Z);
{
new Z_Increase, Quant, Desired;
Desired = 400; // We're creating 400 stairs!
do
{
Z_Increase += 20;
Quant += 1;
CreateObject(18771, X, Y, Z+Z_Increase, 0, 0, 0, 250);
}
while (Desired != Quant);
return 1;
}