XY infront of player
#8



pawn Код:
if (strcmp("/strike", cmdtext, true, 7) == 0)
    {

      if(AirStrike[playerid] == 1)
        {
          new Float:X, Float:Y;
          new Float:PX, Float:PY, Float:PZ;
          GetPlayerPos(playerid,PX,PY,PZ);
          GetXYInFrontOfPlayer(playerid,X,Y,20);
          SetPlayerVirtualWorld(playerid, 1);
          SetPlayerCameraPos(playerid,PX,PY,PZ + 10.00);
            SetPlayerCameraLookAt(playerid,X,Y,PZ);
            TogglePlayerControllable(playerid,0);
            SetPlayerCheckpoint(playerid, X, Y, PZ, 3.00);
        }
        else
        {
          SendClientMessage(playerid,MAROON,"Airstrikes not available");
        }
        return 1;
    }
Thanks
Reply


Messages In This Thread
XY infront of player - by pagie1111 - 19.10.2009, 13:29
Re: XY infront of player - by Think - 19.10.2009, 13:31
Re: XY infront of player - by pagie1111 - 19.10.2009, 13:32
Re: XY infront of player - by Jefff - 19.10.2009, 13:52
Re: XY infront of player - by pagie1111 - 19.10.2009, 13:54
Re: XY infront of player - by pagie1111 - 20.10.2009, 09:28
Re: XY infront of player - by Donny_k - 20.10.2009, 09:35
Re: XY infront of player - by pagie1111 - 20.10.2009, 09:39
Re: XY infront of player - by Donny_k - 20.10.2009, 10:00

Forum Jump:


Users browsing this thread: 2 Guest(s)