02.04.2015, 09:56
hello i have a problem with SetPlayerAttachedObject
i dosent attach any object
the loop work already test with printf /
thanks, Golf
PHP код:
new Float:KamObjectsPos[][] = {
{-0.00070, 0.66170, 0.01860, -81.00000, 0.00000, 0.00000 },
{0.01860, 0.32810, -0.14000, 0.00000, 0.00000, 180.00000 },
{-0.05740, 0.27080, 0.14020, -90.00000, 0.00000, 91.00000},
{-0.05606, 0.13662, 0.14020, -90.00000, 0.00000, 91.00000},
{0.00000, 0.21200, -0.13600, -95.00000, 0.00000, 0.00000},
{-0.02005, 0.25688, -0.14010, 94.00000, 0.00000, 50.00000,},
{-0.20159, 0.18148, 0.10370, -90.00000, 1.00000, 0.00000,},
{-0.19620, -0.12750, 0.07170, -84.00000, 0.00000, 0.00000,},
{0.06531, -0.15659, 0.08570, -84.00000, 0.00000, 0.00000,}
};
new bone[][] = { {2,1,1,1,1,1,1,1,1} };
PHP код:
COMMAND:kamikaze(playerid, params[])
{
if(Kam[playerid] == true) return 1;
for(new z = 0 ; z != 9 ; z++) {
SetPlayerAttachedObject(playerid, 3, KamObjects[z], bone[0][z],KamObjectsPos[z][0], KamObjectsPos[z][1],KamObjectsPos[z][2],KamObjectsPos[z][3], KamObjectsPos[z][4], KamObjectsPos[z][5],1, 1, 1,-1,-1);
}
SetPlayerSkin(playerid, 43);
Kam[playerid] = true;
return 1;
}
the loop work already test with printf /
thanks, Golf