12.04.2015, 00:16
pawn Код:
public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
Float:fRotX, Float:fRotY, Float:fRotZ,
Float:fScaleX, Float:fScaleY, Float:fScaleZ)
{
new debug_string[256+1];
format(debug_string,256,"SetPlayerAttachedObject(playerid,%d,%d,%d,%f,%f,%f,%f,%f,%f,%f,%f,%f)",
pInfo[playerid][indextoy],pInfo[playerid][modelidtoy],pInfo[playerid][boneidtoy],pInfo[playerid][fOffsetXx],pInfo[playerid][fOffsetYy],pInfo[playerid][fOffsetZz],pInfo[playerid][fRotXx],pInfo[playerid][fRotYy],pInfo[playerid][fRotZz],pInfo[playerid][fScaleXx],pInfo[playerid][fScaleYy],pInfo[playerid][fScaleZz]);
print(debug_string);
//SendClientMessage(playerid, 0xFFFFFFFF, debug_string);
SetPlayerAttachedObject(playerid,pInfo[playerid][indextoy],pInfo[playerid][modelidtoy],
pInfo[playerid][boneidtoy],pInfo[playerid][fOffsetXx],pInfo[playerid][fOffsetYy],
pInfo[playerid][fOffsetZz],pInfo[playerid][fRotXx],pInfo[playerid][fRotYy],pInfo[playerid][fRotZz],
pInfo[playerid][fScaleXx],pInfo[playerid][fScaleYy],pInfo[playerid][fScaleZz]);
SendClientMessage(playerid, 0xFFFFFFFF, "You finished editing an attached object");
return 1;
}
pawn Код:
index, modelid, boneid,
Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
Float:fRotX, Float:fRotY, Float:fRotZ,
Float:fScaleX, Float:fScaleY, Float:fScaleZ