look! help plox :D
#1

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+10;
            SpikeInfo[i][sY]=y;
            SpikeInfo[i][sZ]=z-0.7;
            SpikeInfo[i][sObject] = CreateObject(2899, x+10, y, z-0.7, 0, 0, Angle);
            return 1;
        }
    }
    return 0;
}
how to make the object create with the same X pos as the player? i tried hundreds of times < literally and now i have given up on it

pawn Код:
new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
            GetPlayerPos(playerid, plocx, plocy, plocz);
            GetPlayerFacingAngle(playerid,ploca);
            CreateStrip(plocx,plocy,plocz,ploca);
p.s

maybe getvehiclefacing angle? i am so confused with this :@ i thought it would work
Reply
#2

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.7;
                SpikeInfo[i][sObject] = CreateObject(2899, x, y, z-0.7, 0, 0, Angle);
            return 1;
        }
    }
    return 0;
}
Reply
#3

Quote:
Originally Posted by samgreen
Посмотреть сообщение
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.7;
                SpikeInfo[i][sObject] = CreateObject(2899, x, y, z-0.7, 0, 0, Angle);
            return 1;
        }
    }
    return 0;
}
i meant the same angle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)