Code:
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)
{
SendClientMessage(playerid, 0xFF0000FF, "Test");
if(0.0 < fScaleX <= 1.5 || 0.0 < fScaleY <= 1.5 || 0.0 < fScaleZ <= 1.5)
{
SendClientMessage(playerid, 0xFF0000FF, "* Dein Item wird zu groЯ oder zu klein!");
new item;
item = GetPVarInt(playerid,"brille");
SetPlayerAttachedObject(playerid, 3, item, 2, 0.201, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1, -1);
EditAttachedObject(playerid, 3); // Edit again
}
if(0.0 < fOffsetX <= 0.5 || 0.0 < fOffsetY <= 0.5 || 0.0 < fOffsetZ <= 0.5)
{
SendClientMessage(playerid, 0xFF0000FF, "* Dein Item wird zu groЯ oder zu klein!");
new item;
item = GetPVarInt(playerid,"brille");
SetPlayerAttachedObject(playerid, 3, item, 2, 0.201, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1, -1);
EditAttachedObject(playerid, 3); // Edit again
}
}
I had same problem where some streamer callbacks were not called at all.
I fixed this by upgrading mysql plugin from R39-2 to R39-4 after i saw changelog for the plugin "bug-fix: incompatibility with plugins using the sampgdk, where callbacks sometimes aren't called".
thanks, but i dont use the mysql plugin, its just in an filterscript including <a_samp>