How to make it create object on Ground?
#1

hi guys i created a cmd to create flare when ever a cop uses /flares. it worked correctly but my problem is that flare is created in air i want it to create on ground.
here's my cmd:
Код:
 CMD:flares(playerid, params[])
{
    new rank = arrFaction[playerid][p_iMember] > -1 && arrFaction[playerid][g_iFactionType] == 1;
    if(rank < 0) return SendClientMessage(playerid, COLOR_WHITE, "You are not authorized to use this command.");
	{
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            CreateObject(18728, x,y,z, 0.0, 0.0, 96.0);
	}
	return 1;
 }
Also, if you can give me cmd for destroying nearest flare(not all) so that i can create multiple flares and can destroy it oe by one... thanks
Reply


Messages In This Thread
How to make it create object on Ground? - by GTLS - 15.05.2015, 07:26
Re: How to make it create object on Ground? - by Smileys - 15.05.2015, 07:41
Re: How to make it create object on Ground? - by GTLS - 15.05.2015, 08:02
Re: How to make it create object on Ground? - by rappy93 - 15.05.2015, 12:30
Re: How to make it create object on Ground? - by JaydenJason - 15.05.2015, 13:29
Re: How to make it create object on Ground? - by JaydenJason - 15.05.2015, 13:40
Re: How to make it create object on Ground? - by GTLS - 15.05.2015, 13:58
Re: How to make it create object on Ground? - by JaydenJason - 17.05.2015, 10:21
Re: How to make it create object on Ground? - by Crayder - 17.05.2015, 10:36
Re: How to make it create object on Ground? - by JaydenJason - 18.05.2015, 09:49

Forum Jump:


Users browsing this thread: 1 Guest(s)