OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, floatrange, x, y, z)
{
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}
new valami;
new pont;
ongamemodeinit fölé
forward timer();
ongamemodeinit alá
valami = CreateObject(3032, x, y, z, rx, ry, rz);
pont = 0;
SetTimer(\"timer\", 3000, true);
valahova lejjebb a modba:
public timer()
{
if(pont == 0)
{
MoveObject(valami, x2, y2, z2, 3, rx2, ry2, rz2);
pont = 1;
}else{
MoveObject(valami, x, y, z, 3, rx, ry, rz);
pont = 0;
}
return 1;
}