SA-MP Forums Archive
[1000 Scripting Discussion Page!] Is there any rent car system? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [1000 Scripting Discussion Page!] Is there any rent car system? (/showthread.php?tid=85727)



[1000 Scripting Discussion Page!] Is there any rent car system? - Spatman - 09.07.2009

I cant find one, i tryed to search everywhere :S All i found was vehicle ownership etc...


Re: [1000 Post!] Is there any rent car system? - Correlli - 09.07.2009

If you haven't found any then ask in script request thread.


Re: [1000 Post!] Is there any rent car system? - Spatman - 09.07.2009

Quote:
Originally Posted by Don Correlli
If you haven't found any then ask in script request thread.
I dont want to be idiot or anything, but no-one wont make any so complicated scripts there...


Re: [1000 Scripting Discussion Post!] Is there any rent car system? - weedarr - 09.07.2009

Let me tell you, this ain't the 1000th post if I know what you mean.

http://forum.sa-mp.com/index.php?topic=94387.0

WeeDarr

Edit:
Quote:
Originally Posted by Spatman
Quote:
Originally Posted by Don Correlli
If you haven't found any then ask in script request thread.
I dont want to be idiot or anything, but no-one wont make any so complicated scripts there...
Well go look in the showroom again. Then look again.


Re: [1000 Scripting Discussion Post!] Is there any rent car system? - Spatman - 09.07.2009

Quote:
Originally Posted by WeeDarr
Let me tell you, this ain't the 1000th post if I know what you mean.

http://forum.sa-mp.com/index.php?topic=94387.0

WeeDarr

Edit:
Quote:
Originally Posted by Spatman
Quote:
Originally Posted by Don Correlli
If you haven't found any then ask in script request thread.
I dont want to be idiot or anything, but no-one wont make any so complicated scripts there...
Well go look in the showroom again. Then look again.
Yea i mean topic not post

Ill try again to search *sigh* i searched like 1hour, didnt find nothing...


Re: [1000 Scripting Discussion Topic!] Is there any rent car system? - Anarkien - 09.07.2009

No, it's not. It's the 1000'th page.
And search. There's a system here where you can admin buy all the cars and set them rentable.. just remove the text that says you own them.


Re: [1000 Scripting Discussion Topic!] Is there any rent car system? - -Sneaky- - 09.07.2009

I can help you get started, but you will have to edit/add other stuff yourself:

pawn Код:
// On Top:
new MyVehicle;

// OnGameModeInit
MyVehicle = CreateVehicle(451, 0, 0, 0, 0, 0, 0, 1000); // change the coordinates to your own

// OnPlayerStateChange
public OnPlayerStateChange(playerid, newstate, oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == MyVehicle) // check if the newstate is driver and the vehicleid is "MyVehicle"
  {
    SendClientMessage(playerid, 0xFFFF00, "Do a rent system here!"); // replace this with whatever you want todo when they enter "MyVehicle"
    return 1;
  }
  return 1;
}
Hope this will get you started


Re: [1000 Scripting Discussion Topic!] Is there any rent car system? - Anarkien - 09.07.2009

Quote:
Originally Posted by Sneaky.
I can help you get started, but you will have to edit/add other stuff yourself:

pawn Код:
// On Top:
new MyVehicle;

// OnGameModeInit
MyVehicle = CreateVehicle(451, 0, 0, 0, 0, 0, 0, 1000); // change the coordinates to your own

// OnPlayerStateChange
public OnPlayerStateChange(playerid, newstate, oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == MyVehicle) // check if the newstate is driver and the vehicleid is "MyVehicle"
  {
    SendClientMessage(playerid, 0xFFFF00, "Do a rent system here!"); // replace this with whatever you want todo when they enter "MyVehicle"
    return 1;
  }
  return 1;
}
Hope this will get you started
Would that work for several vehicles, or only one, with the name MyVehicle?


Re: [1000 Scripting Discussion Topic!] Is there any rent car system? - Spatman - 09.07.2009

Quote:
Originally Posted by Anarkien
No, it's not. It's the 1000'th page.
And search. There's a system here where you can admin buy all the cars and set them rentable.. just remove the text that says you own them.

What is this then? It was 999 before i made the topic..


Re: [1000 Scripting Discussion Topic!] Is there any rent car system? - Anarkien - 09.07.2009

Quote:
Originally Posted by Spatman
Quote:
Originally Posted by Anarkien
No, it's not. It's the 1000'th page.
And search. There's a system here where you can admin buy all the cars and set them rentable.. just remove the text that says you own them.

What is this then? It was 999 before i made the topic..
Please read what I wrote, for Christs sake. I said "It's the 1000'th page", just like your image says.