28.03.2016, 14:25
I tried that when you type the command a player can not just another player key and when the object got into position. To order it goes whether or not the object to its original position.
PHP код:
if(strcmp(cmd, "/balon", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5, 3808.3311,-537.4142,3.9412))
{
if(BalonTime[playerid] = 1)
{
MoveObject(Balon, 3740.3618, -563.4200, 74.2950, 5, 0.0000, 0.0000, -75.7200);
SetTimerEx("Balon1", 8000, false, "i", playerid);
BalonTime[playerid] = 0;
return 1;
}
else SendClientMessage(playerid, -1, "Ai rabdare sa se intoarca balonul pe insula.");
}
}