Author Topic: | Command better of "Enter car" | For gups |  (Read 6467 times)

0 Members and 2 Guests are viewing this topic.

Offline .ElBoyz

  • Street Thug
  • *
  • Posts: 15
  • ¿ What's up doc ?
    • View Profile
| Command better of "Enter car" | For gups |
« on: March 18, 2013, 05:21:02 am »
Image



Fuction

[pawn]public OnPlayerEnterVehicle(playerid,vehicleid)
{
   new szMsg[ 128 ];

   if ( strcmp( VehicleInfo[ vehicleid ][ Owner ], "Sunshine Autos", true ) == 0 )
   {
      format( szMsg, sizeof( szMsg ), "VehicleID: %d - Cost - $%d ", vehicleid, VehicleInfo[ vehicleid ][ Price ] );
      SendClientMessage( playerid, BLUE, szMsg );
   }
   else if ( strcmp( VehicleInfo[ vehicleid ][ Share ], "none", true ) == 0 )
   {
      format( szMsg, sizeof( szMsg ), "VehicleID: %d - Owner[%s]", vehicleid, VehicleInfo[ vehicleid ][ Owner ] );
      SendClientMessage( playerid, GREEN, szMsg );
   }
   else
   {
      format( szMsg, sizeof( szMsg ), "VehicleID: %d - Owner[%s] - Shared[%s]", vehicleid, VehicleInfo[ vehicleid ][ Owner ], VehicleInfo[ vehicleid ][ Share ] );
      SendClientMessage( playerid, ORANGE, szMsg );
   }
   
   return 1;
}[/pawn]

You put replace The public OnPlayerEnterVehicle , by my new better OnPlayerEnterVehicle.

And sorry for my bad english :)

Car not buy
VehicleID: 1 - Cost : 40502$

Car buy
VehicleID: 1 - Owner : .ElBoyz

Car buy and shared
VehicleID: 1 - Owner : .ElBoyz - Shared : Aledark24

En español
[pawn]public OnPlayerEnterVehicle(playerid,vehicleid)
{
   new szMsg[ 128 ];

   if ( strcmp( VehicleInfo[ vehicleid ][ Owner ], "Sunshine Autos", true ) == 0 )
   {
      format( szMsg, sizeof( szMsg ), "VehiculoID: %d - Costo - $%d ", vehicleid, VehicleInfo[ vehicleid ][ Price ] );
      SendClientMessage( playerid, BLUE, szMsg );
   }
   else if ( strcmp( VehicleInfo[ vehicleid ][ Share ], "none", true ) == 0 )
   {
      format( szMsg, sizeof( szMsg ), "VehiculoID: %d - Duenio[%s]", vehicleid, VehicleInfo[ vehicleid ][ Owner ] );
      SendClientMessage( playerid, GREEN, szMsg );
   }
   else
   {
      format( szMsg, sizeof( szMsg ), "VehiculoID: %d - Duenio[%s] - Compartido[%s]", vehicleid, VehicleInfo[ vehicleid ][ Owner ], VehicleInfo[ vehicleid ][ Share ] );
      SendClientMessage( playerid, ORANGE, szMsg );
   }
   
   return 1;
}[/pawn]
« Last Edit: March 19, 2013, 03:29:35 am by .ElBoyz »

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: | Command better of "Enter car" | For gups |
« Reply #1 on: March 18, 2013, 03:01:51 pm »
nice my friend but, you need say working in gups and fc only
because you know example "warchief" not have the same system of cars
So only work in script based in (gups-FC)
but is a great public "not command" (public)
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline .ElBoyz

  • Street Thug
  • *
  • Posts: 15
  • ¿ What's up doc ?
    • View Profile
Re: | Command better of "Enter car" | For gups |
« Reply #2 on: March 18, 2013, 08:47:08 pm »
Good :)

Offline Fire_Head

  • Street Thug
  • *
  • Posts: 35
    • View Profile
Re: | Command better of "Enter car" | For gups |
« Reply #3 on: March 18, 2013, 09:45:08 pm »
Nice work :)

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: | Command better of "Enter car" | For gups |
« Reply #4 on: March 18, 2013, 10:42:55 pm »
Quote
Code: [Select]
public OnPlayerEnterVehicle(playerid,vehicleid,plr)

The "plr" parameter is useless.

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline .ElBoyz

  • Street Thug
  • *
  • Posts: 15
  • ¿ What's up doc ?
    • View Profile
Re: | Command better of "Enter car" | For gups |
« Reply #5 on: March 19, 2013, 03:32:30 am »
Quote
Code: [Select]
public OnPlayerEnterVehicle(playerid,vehicleid,plr)

The "plr" parameter is useless.

I have other code in OnPlayerEnterVehicle xD

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: | Command better of "Enter car" | For gups |
« Reply #6 on: March 20, 2013, 01:57:18 pm »
My suggestion you change :
"Car not buy" to "car for sale"
"Car buy" to "car buyed"
"Car buy and shared" to "car buyed and shared"
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: | Command better of "Enter car" | For gups |
« Reply #7 on: March 20, 2013, 03:03:13 pm »
My suggestion you change :
"Car not buy" to "car for sale"
"Car buy" to "car buyed"
"Car buy and shared" to "car buyed and shared"

Learn irregular verbs

Buy - bought - bought


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Pain

  • Guest
Re: | Command better of "Enter car" | For gups |
« Reply #8 on: March 20, 2013, 03:07:50 pm »
nice

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: | Command better of "Enter car" | For gups |
« Reply #9 on: March 20, 2013, 04:03:32 pm »

Learn irregular verbs

Buy - bought - bought
[/quote]
-,- it just example
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline .ElBoyz

  • Street Thug
  • *
  • Posts: 15
  • ¿ What's up doc ?
    • View Profile
Re: | Command better of "Enter car" | For gups |
« Reply #10 on: March 23, 2013, 06:40:54 am »