Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: eliezer87 on August 09, 2012, 05:13:15 am

Title: Comando de ubicacion/Command location
Post by: eliezer87 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
Title: Re: Comando de ubicacion/Command location
Post by: Fuzzy168 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?
Title: Re: Comando de ubicacion/Command location
Post by: eliezer87 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
Title: Re: Comando de ubicacion/Command location
Post by: MatheuS 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]