PDA

View Full Version : Deployflare help


tboysamp
13/01/2015, 04:26 AM
http://s9.postimg.org/k49ysylmn/gta_sa_2015_01_13_00_00_05_38.png
I just need help with geting the flare lower to the ground I have tried everything
CMD:deployflare(playerid, params[])
{
if (GetFactionType(playerid) != FACTION_POLICE)
return SendErrorMessage(playerid, "You are not a police officer.");

new Float:playerPos[3];
GetPlayerPos(playerid, playerPos[0], playerPos[1], playerPos[2]);
ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,0,0,0,0,0,1); // Plant bomb
if(FindEmptySlot1() == -1) return SendClientMessage(playerid, COLOR_WHITE, "The flare limit (10) has been reached, please delete some flares using /destroyflare <1-10>");
SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, "** %s has successfully placed a flare! (ID: %i).", ReturnName(playerid, 0), FindEmptySlot1() + 1);
PlantedFlares[FindEmptySlot1()] = CreateDynamicObject(18728, playerPos[0], playerPos[1], playerPos[2] - 1, 0, 0, 0);
return 1;
}

Steven82
13/01/2015, 05:06 AM
Subtract values from the "Z" coordinate until you feel it's low enough. I see you've already done that, did it do anything as far as moving it?

I don't know how much help I'll be, it's been awhile since I've played/scripted--just getting back into stuff/remembering.

tboysamp
13/01/2015, 05:14 AM
no it did not work