Object problem.
#4

Код:
new tower;
CMD:tower(playerid,params[])
{
	new Float:x,Float:y,Float:z;
	if(!IsValidObject(tower))
	{
		GetPlayerPos(playerid, x, y, z);
		tower = CreateObject(11461,x,y,z, 0.0, 0.0, 96.0);
		SetPlayerPos(playerid, x, y, z + 27.0);
		SendClientMessage(playerid,COLOR_GREY,"SERVER: You have created a tower.");
	}
	else
	{
               GetPlayerPos(playerid, x, y, z);
		SetPlayerPos(playerid,x,y,z - 27.0);
		DestroyObject(tower);
		SendClientMessage(playerid,COLOR_GREY,"SERVER: You have destroyed a tower.");
	}
	return 1;
}
Reply


Messages In This Thread
Object problem. - by XtremeRz - 08.06.2016, 02:13
Re: Object problem. - by cuzido - 08.06.2016, 03:20
Re: Object problem. - by XtremeRz - 08.06.2016, 04:56
Re: Object problem. - by MTGCrane - 08.06.2016, 06:03
Re: Object problem. - by BornHuman - 08.06.2016, 07:20
Re: Object problem. - by andrejc999 - 08.06.2016, 07:31
Re: Object problem. - by XtremeRz - 08.06.2016, 19:03

Forum Jump:


Users browsing this thread: 1 Guest(s)