how do i check current vehicles angle between A & B ?
#1

ok so i want when a vehicle the player is driving enters a checkpoint to make sure its between say 250 & 270 degrees for an example. how would i do that ? so far i have this:

PHP код:
    if(strcmp(cmdtext"/goto"true) ==0
     
{
         
SetPlayerCheckpoint(playerid,1421.7950,-914.9064,36.0469);
         
         if (
IsPlayerInCheckpoint(playerid))
         {
                     
// if player's vehicle is between 250-270 degrees
                         
{
                           
SendClientMessage(playeridCOLOR_RED"sentence 1");
                           
SendClientMessage(playeridCOLOR_RED"sentence 2")
                          
                          else
                          
SendClientMessage(playeridCOLOR_RED"you need to reverse up to the X")
                         }
         }
      } 
just started my first from scratch script so dont slate me or troll it isnt helpful =[
Reply


Messages In This Thread
how do i check current vehicles angle between A & B ? - by English-Conceptz - 27.11.2011, 02:56

Forum Jump:


Users browsing this thread: 1 Guest(s)