SA-MP Forums Archive
CreateVehicle for only one player - 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: CreateVehicle for only one player (/showthread.php?tid=206760)



CreateVehicle for only one player - Emirt - 04.01.2011

I want to create vehicle just for one player only, I know that, it is possible, becouse I saw something like that, long time ago, on some sverer but I can't figure how to do that.

Код:
CreateVehicleForPlayer(playerid,vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay);
something like that


Re: CreateVehicle for only one player - Jochemd - 04.01.2011

Its not possible


Re: CreateVehicle for only one player - Geso - 04.01.2011

Quote:
Originally Posted by Emirt
Посмотреть сообщение
I want to create vehicle just for one player only, I know that, it is possible, becouse I saw something like that, long time ago, on some sverer but I can't figure how to do that.

Код:
CreateVehicleForPlayer(playerid,vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay);
something like that
It is possible, but then you wouldn't see any other players, cause you'd be in another virtual world.

One thing I can think of is a vehicle that is only drivable by that specific player, and locked for others.


Re: CreateVehicle for only one player - _rAped - 04.01.2011

Do you want it to be so only that player could drive it or enter it?


Re: CreateVehicle for only one player - .Leight. - 04.01.2011

Do it on the basis of RP. From the example you give a player /makemembervip it becomes wipem and maybe the car ride. And something is not possible.


Re: CreateVehicle for only one player - Emirt - 04.01.2011

Quote:
Originally Posted by Hoborific
Посмотреть сообщение
lmao figurate
what the hell ?

Quote:
Originally Posted by Geso
Посмотреть сообщение
It is possible, but then you wouldn't see any other players, cause you'd be in another virtual world.

One thing I can think of is a vehicle that is only drivable by that specific player, and locked for others.
Och, thats what I dind't thing of,VirtualWorld, thanks It will help me
Thanks alot Geso and all of you


Re: CreateVehicle for only one player - blackwave - 04.01.2011

I also remember it from a server: stunt (something). THis is created for one player, since he player is set for another virtual world. So:
pawn Код:
SetPlayerVirtualWorld(playerid, world);



Re: CreateVehicle for only one player - Mean - 04.01.2011

But if he uses VW method, player won't be able to see others, you will need to set the VW back.


Re: CreateVehicle for only one player - hanzen - 04.01.2011

Quote:
Originally Posted by Mean
Посмотреть сообщение
But if he uses VW method, player won't be able to see others, you will need to set the VW back.
What is the purpose of having a person driving around in a vehicle others can't see?


Re: CreateVehicle for only one player - Emirt - 04.01.2011

Quote:
Originally Posted by hanzen
Посмотреть сообщение
What is the purpose of having a person driving around in a vehicle others can't see?
I have done on my server mini-missions and problem was that, the only one player cudl do that mission at the same time becouse of the cars, I just didn't thing about VW, as I sad problem sloved:P
Thanks anyway