13.04.2009, 13:58
I have those 2 commands
Now how can i check if the object test is at ? I know to use a timer and GetObjectPos, but how to format it.. (if its at the coordinates -1194.8014, -1061.5055, 129.2188 then do something")
Can somebody help me?
Thnx
pawn Код:
dcmd_actest(playerid, params[])
{
#pragma unused playerid
#pragma unused params
test = CreateObject(16442, -1194.8014, -1061.5055, 129.2188, 0, 0, 90);
}
dcmd_actest1(playerid, params[])
{
#pragma unused playerid
#pragma unused params
MoveObject(test, -1191.5671, -954.3043, 129.2119, 2.0);
}
Can somebody help me?
Thnx