SA-MP Forums Archive
make it spawn on my back. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: make it spawn on my back. (/showthread.php?tid=172250)



make it spawn on my back. - LifeStyle - 29.08.2010

I am using this spike strip script, but it's spawning directly under me... I want it to spawn on my back :S
pawn Код:
stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)
{
    for(new i = 0; i < sizeof(SpikeInfo); i++)
    {
        if(SpikeInfo[i][sCreated] == 0)
        {
            SpikeInfo[i][sCreated]=1;
            SpikeInfo[i][sX]=x;
            SpikeInfo[i][sY]=y;
            SpikeInfo[i][sZ]=z-0.5;
            SpikeInfo[i][sObject] = CreateObject(2899, x, y, z-0.5, 0, 0, Angle-90);
            return 1;
        }
    }
    return 0;
}



Re: make it spawn on my back. - Hiddos - 29.08.2010

http://pastebin.com/anPZeWu2