/goto whit vehicle
#1

pawn Код:
CMD:goto( playerid, params[ ] )
{
   if(!cgoto[playerid]) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This players don0t admit other players to teleport to him");
   if(playerinminigame[playerid] == 1) return Error(playerid);
   if( isnull( params ) ) return 0; // No player
   new targetid = strval( params );
   if( !IsPlayerConnected( targetid ) ) return 0; // Targeted player is not connected
   new Float: Pos[ 4 ];
   GetPlayerPos( targetid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
   GetPlayerFacingAngle( targetid, Pos[ 3 ] );
   SetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
   SetPlayerFacingAngle( playerid, Pos[ 3 ] );
   return 1;
}
In this goto command the player can't goto whit vehicle. How can i do whit vehicle.
Reply


Messages In This Thread
/goto whit vehicle - by SamyRomafia - 16.07.2011, 21:56
Re: /goto whit vehicle - by Lee_Percox - 16.07.2011, 22:45
Re: /goto whit vehicle - by [MG]Dimi - 17.07.2011, 08:29
Re: /goto whit vehicle - by Skaizo - 17.07.2011, 08:35

Forum Jump:


Users browsing this thread: 1 Guest(s)