GetVehicleModel - 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)
+--- Thread: GetVehicleModel (
/showthread.php?tid=301954)
GetVehicleModel -
|-Ruben-| - 06.12.2011
Hello.... i have found this problem:
I have to do a system for buy and save cars, already done.
The vehicle ID is vconc[playerid]
I wanna make if the player press "Y" key spawn the car in the garage, already done:
SetVehiclePos(vconc[playerid],2093.0139,-2450.2568,13.6596);
But if y want to save the CAR MODEL, example
pVeh1 is the slot to save the car
If the player buy the car, will be:
pVeh1 = <vehiclemodel>
So
OnPlayerConnect
if(pVeh1 != INVALID_VEHICLE_MODEL) CreateVehicle(MODEL(pVeh),blah,blah,blah);
HOW?
Thanks!
Re: GetVehicleModel -
TheArcher - 06.12.2011
I don't understand what you mean exactily. And " Y " key can be detected by the client
Re: GetVehicleModel -
AndreT - 06.12.2011
Quote:
Originally Posted by TheArcher
And " Y " key can be detected by the client 
|
Every key can be detected by the client. However yes, since 0.3d, keys YES and NO are also sent to the server!
Re: GetVehicleModel -
|-Ruben-| - 06.12.2011
Simply:
pVeh1 = SAVE FILE
vconc = VEHICLE ID
HOW I CAN DO CreateVehicle(MODELIDfromVCONC,blah,blah);?
Re: GetVehicleModel -
TheArcher - 06.12.2011
As much as i know you can check
This GetPlayerKeys doesn't support all the keys.