Author Topic: Comando de ubicacion/Command location  (Read 2264 times)

0 Members and 2 Guests are viewing this topic.

Offline eliezer87

  • Street Thug
  • *
  • Posts: 11
    • View Profile
Comando de ubicacion/Command location
« on: August 09, 2012, 05:13:15 am »
Pues me miden como poner un camando que le muestre la ubicacion osea que si quieren llamar a un taxi pongan el comando asi el taxi save donde usted esta.

Bueno espero que me ayuden byee..

///////////////////////////////////////////////////////////////
Inglesh
////////////////////////////////////////////////////////
Well, I like putting a camando measure to show you the location bone if you want to call a cab so put the command save the taxi where you are.

Well I hope you help me

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Comando de ubicacion/Command location
« Reply #1 on: August 09, 2012, 05:15:12 am »
Well, I like putting a camando measure to show you the location bone if you want to call a cab so put the command save the taxi where you are.

Well I hope you help me
Google Translate FAILED

Let me get this straight, you want a command that will call a cab. Then save the location and tells the taxi where you are?
I'm beginning to feel like a Lag God, Lag God

Offline eliezer87

  • Street Thug
  • *
  • Posts: 11
    • View Profile
Re: Comando de ubicacion/Command location
« Reply #2 on: August 09, 2012, 05:34:51 am »
Well, I like putting a camando measure to show you the location bone if you want to call a cab so put the command save the taxi where you are.

Well I hope you help me
Google Translate FAILED

Let me get this straight, you want a command that will call a cab. Then save the location and tells the taxi where you are?
Yes

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Comando de ubicacion/Command location
« Reply #3 on: August 30, 2012, 07:24:08 am »
[pawn]else if ( strcmp( cmd, "!loc", true ) == 0 )
   {
      tmp = strtok( cmdtext, idx );
      if ( !strlen( tmp ) )
      {
         format( szMsg, sizeof( szMsg ), "Locacion %s: %s", gPlayers[ playerid ], GetPlayerLocation( playerid ) );
         SendClientMessageToAll( BLUE, szMsg );
      }
      else
      {
         new plr = FindPlayerIDFromString( tmp );
          if ( plr == INACTIVE_PLAYER_ID )SendClientMessage ( playerid, RED, "Error: Unknown player" );
         else if ( PlayerInfo[ plr ][ NoLoc ] == 1 )
         {
            format( szMsg, sizeof( szMsg ), "%s localizar desactivado.", gPlayers[ plr ] );
         SendClientMessage( playerid, COLOR_GREEN, szMsg );
         }
         else
         {
            format( szMsg, sizeof( szMsg ), "Locacion %s: %s", gPlayers[ plr ], GetPlayerLocation( plr ) );
               SendClientMessageToAll( BLUE, szMsg );
          }
      }
      return 1;
       }
             return 1;
       }[/pawn]