Spawn menu
#5

Quote:
Originally Posted by Gozerr
pawn Код:
forward Float:GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance);

new Float:x, Float:y, Float:z, Float:a;
GetPlayerFacingAngle(playerid, a);
GetPlayerPos(playerid, x, y, z);
GetXYInFrontOfPlayer(playerid, x, y, 5.0);
z + 2.0;
a + 90;

  if(dialogid == 2 && response)
  {
    switch(listitem)
    {
      case 0:
      {
                CreateVehicle(515, x, y, z, a, 670, 60, 12000);
      }
      case 1:
      {
                CreateVehicle(515, x, y, z, a, 670, 60, 12000);
      }
      case 2:
      {
                CreateVehicle(515, x, y, z, a, 670, 60, 12000);
      }
    }
  }

Float:GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
if (IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
else GetPlayerFacingAngle(playerid, a);
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
 return a;

}
I cant let it work? i got already 2 differend, but i want to try 3 kind if possbile how can i add this one
Reply


Messages In This Thread
Spawn menu - by security - 28.02.2010, 08:40
Re: Spawn menu - by [HiC]TheKiller - 28.02.2010, 08:46
Re: Spawn menu - by Norck - 28.02.2010, 08:47
Re: Spawn menu - by Gozerr - 28.02.2010, 08:49
Re: Spawn menu - by security - 28.02.2010, 08:56

Forum Jump:


Users browsing this thread: 1 Guest(s)