[Help] Command /goto
#3

pawn Код:
if ( strcmp( cmdtext, "/goto", true ) == 0 )
    {
      new tmp[256];
      tmp = strtok( cmdtext, idx );

      if ( !strlen( tmp ) ) { return 1; }

      new Float:X, Float:Y, Float:Z;

      if ( GetPlayerVehicleID( playerid ) )
      {
          GetPlayerPos( strval(tmp), X, Y, Z );
          SetVehiclePos( GetPlayerVehicleID(playerid), X+2, Y+2, Z );
      } else {
          GetPlayerPos( strval(tmp), X, Y, Z );
          SetPlayerPos( playerid, X+2, Y+2, Z );
      }

      return 1;
    }
Reply


Messages In This Thread
Fixed - by Nick. - 27.09.2011, 20:04
Re: [Help] Command /goto - by Snipa - 27.09.2011, 22:24
Re: [Help] Command /goto - by Kostas' - 27.09.2011, 22:34
Re: [Help] Command /goto - by Nick. - 28.09.2011, 16:44
Re: [Help] Command /goto - by Kingunit - 28.09.2011, 16:45
Fixed - by Nick. - 28.09.2011, 20:02
Re: [Help] Command /goto - by Nick. - 28.09.2011, 21:11
Fixed - by Nick. - 30.09.2011, 16:03
Re: [Help] Command /goto - by Cjgogo - 30.09.2011, 16:10

Forum Jump:


Users browsing this thread: 2 Guest(s)