30.04.2014, 00:16
pawn Код:
forward PLARANJA(playerid);
public PLARANJA(playerid)
{
new Float:x,Float:y,Float:z,Float:PposA;
GetPlayerFacingAngle(playerid, PposA);
x+= (3 * floatsin(-PposA, degrees));
y += (3 * floatcos(-PposA, degrees));
GetObjectPos(ProxyArv[playerid][ArvoreObject2] , x , y , z);
CreatePLaranja(x,y,z);
DestroyObject(ProxyArv[playerid][ArvoreObject2]);
return 1;
}
pawn Код:
forward PLARANJA(playerid);
public PLARANJA(playerid)
{
new Float:x,Float:y,Float:z,Float:PposA;
GetPlayerFacingAngle(playerid, PposA);
x+= (3 * floatsin(-PposA, degrees));
y += (3 * floatcos(-PposA, degrees));
GetObjectPos(ProxyArv[playerid][ArvoreObject2][tarvore] , x , y , z);
CreatePLaranja(x,y,z);
DestroyObject(ProxyArv[playerid][ArvoreObject2][tarvore]);
return 1;
}