Lumberjack
#1

How to find out the id off te object,and if that object is a object that I add.
Код:
zadrvosjecu[0] = CreateObject(685, 1307.00757, 55.38950, 20.63992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[1] = CreateObject(685, 1289.91394, 65.52206, 20.63992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[2] = CreateObject(685, 1317.71204, 74.96725, 20.63992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[3] = CreateObject(685, 1280.05420, 93.86053, 20.13992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[4] = CreateObject(685, 1293.65186, 80.50809, 20.63992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[5] = CreateObject(685, 1308.20496, 30.94956, 20.63992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[6] = CreateObject(685, 1329.05933, 47.78266, 20.63992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[7] = CreateObject(685, 1341.10388, 62.84484, 20.63992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[8] = CreateObject(685, 1337.68835, 90.83851, 20.38992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[9] = CreateObject(685, 1361.54578, 92.63166, 20.38992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[10] = CreateObject(685, 1355.36487, 74.92559, 20.38992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[11] = CreateObject(685, 1360.84241, 39.46049, 23.88992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[12] = CreateObject(685, 1374.99719, 52.99983, 23.88992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[13] = CreateObject(685, 1338.65930, 30.58072, 23.88992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[14] = CreateObject(685, 1371.12451, 70.64601, 23.88992,   0.00000, 0.00000, 0.00000);
zadrvosjecu[15] = CreateObject(685, 1277.09094, 54.30464, 21.63992,   0.00000, 0.00000, 0.00000);
I will use OnPlayerKeyStateChange,like this.
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(startjobd[playerid] == true)
    {
        if(newkeys == KEY_JUMP || newkeys == KEY_FIRE || KEY_CROUCH || KEY_SECONDARY_ATTACK)
        {
              DisablePlayerCheckpoint(playerid);
             RemovePlayerAttachedObject(playerid,1);
             ApplyAnimation(playerid,"PED","IDLE_tired",4.1,0,1,1,0,1);
             SendClientMessage(playerid,0xAFAFAFAA," you drop the timber");
            SetPlayerCheckpoint(playerid, -1898.4493,-2008.8124,80.6425,1.0);
        }
    }
    return 1;
}
Thanks,and sorry for my bad English.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)