04.01.2015, 09:02
Hey there. So I have this test script where I tried if EditDynamicObject works, and OnPlayeEditDynamicObject doesn't get called in my filterscript.
Does anyone know how to fix this? Thanks!
pawn Код:
new obj;
//////////
public OnFilterScriptInit()
{
obj = CreateDynamicObject(980, 1935.296142, 1384.733886, 9.257806, 0.0, 0.0, 89.937545);
return 1;
}
//////////
public OnPlayerSpawn(playerid)
{
EditDynamicObject(playerid, obj);
return 1;
}
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
SendClientMessage(playerid, -1, "OnPlayerEditDynamicObject gets called");
}