28.11.2010, 04:54
how do i make this create 4 objects infront of the player, each object +2 infront of each object
like this?
pawn Код:
for(new i = 0; i < sizeof(BribePickups); i++)
{
GetXYInFrontOfPlayer(playerid, x2, y2, 3);
GpsPickups[i] = CreatePlayerObject(playerid,1318,x2,y2,z2,0,0,0,50);
GetXYBehindPlayer(playerid,x2,y2,4);
new Float:ppx,Float:ppy,Float:ppz;
GetPlayerPos(playerid,ppx,ppy,ppz);
if(ObjectToPoint(playerid, 2, GpsPickups[i], ppx, ppy, ppz))
{
DestroyDynamicObject(GpsPickups[i]);
}
}
