[POMOC] Padanje snijega

Započeo Danisha, Decembar 06, 2012, 15:24:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:ravnes
Detaljan opis problema:kako da uradim da mi snijeg ne prelazi visinu od 300.00 padanja znali ko evo dacu dole dio moje skripte
Dio skripte:
#include <a_samp>
#include <streamer>
#include <zcmd>
#include <foreach>

new snowobj[MAX_PLAYERS];
new SnowONOFF[MAX_PLAYERS];
new Float:sx,Float:sy,Float:sz;

public OnPlayerSpawn(playerid)
{
    SnowONOFF[playerid]=1;
    snowobj[playerid]=CreatePlayerObject(playerid,18864, sx, sy, sz, 0.0, 0.0, 0.0, 300.0);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    if(SnowONOFF[playerid]==1)
    {
         DestroyPlayerObject(playerid,snowobj[playerid]);
    }
    return 1;
}

public OnPlayerUpdate(playerid)
{
        if(SnowONOFF[playerid]==1)
        {
            GetPlayerCameraPos(playerid,sx,sy,sz);
            MovePlayerObject(playerid,snowobj[playerid],sx,sy,sz,9999.0);
        }
        if(GetPlayerInterior(playerid) > 0)
{
    DestroyPlayerObject(playerid,snowobj[playerid]);
}
if(GetPlayerVirtualWorld(playerid) > 0)
{
DestroyPlayerObject(playerid,snowobj[playerid]);
}
        return 1;
}

public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
    if(newinteriorid > 0)
    {
        SnowONOFF[playerid]=1;
        snowobj[playerid]=CreatePlayerObject(playerid,18864, sx, sy, sz-5, 0.0, 0.0, 0.0, 300.0);
    }
    else if(newinteriorid == 0)
    {
        SnowONOFF[playerid]=1;
        snowobj[playerid]=CreatePlayerObject(playerid,18864, sx, sy, sz-5, 0.0, 0.0, 0.0, 300.0);
    }
    return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): ////