#5

He means, decrease the Object Pos Z, because GetPlayerPos gets the position from the players body, try this code, if it's too low increase it, just do some experiment.

pawn Код:
stock CreateCone(playerid, Float:x, Float:y, Float:z, Float:Angle)
{
    for(new i = 0; i < sizeof(cInfo); i++)
    {
        if(!cInfo[i][cCreated])
        {
            cInfo[ i ][ cCreated ] = 1;
            cInfo[ i ][ cOwner ] = playerid;
            cInfo[ i ][ cObject ] = CreateObject(1238, x, y, z - 0.8, 0.0, 0.0, Angle);
            return 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread
Cone - by TLN - 25.02.2014, 17:49
Re: Cone - by MattTucker - 25.02.2014, 17:55
Respuesta: Cone - by CuervO - 25.02.2014, 17:56
Re: Cone - by TLN - 25.02.2014, 17:59
Re: Cone - by Patrick - 25.02.2014, 18:02
Re: Cone - by TLN - 25.02.2014, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)