SA-MP Forums Archive
help me with balloon command ! plz reply below - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help me with balloon command ! plz reply below (/showthread.php?tid=528295)



help me with balloon command ! plz reply below - SpikY_ - 27.07.2014

i want to make a hot airballoon with command .. /go and /back command to move tht balloon but i was far away from it ..

i want to make tht balloon with "IsPlayerInRangeOfPoint"

here are the codes:

Код:
#include <a_samp>
new xyz;
public OnGameModeInit()
{
	xyz = CreateObject(19333, -959.48248, 3661.75122, 50.01505, 0.00000, 0.00000, -6.42000);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext, "/go"))
	{
		MoveObject(xyz, -942.4452, 4525.3149, 40.0666, 5.0);
		return 1;
	}
	if(!strcmp(cmdtext, "/back"))
	{
		MoveObject(xyz, -959.48248, 3661.75122, 50.01505, 5.0);
		return 1;
	}
	return 0;
}