[Include] [INC] 99.Pawn - Easy Vehicle Functions - "EVF"
#21

Quote:
Originally Posted by Steven82
How do i make it so when i add the owner's name, if the person not the owner's name and they get in it kicks them out.
Read the installation instructions once again. You need to add INC_VehicleStateChange(playerid, newstate); and INC_VehicleSpawn(vehicleid); to that callbacks.

Quote:
Originally Posted by Danny-08
little problem with AddPrivateVehicle

i am not sure if i am doing it correct i tried these in my game mode.

AddPrivateVehicle(Owner[iKustomize],522,-1364.7598,-213.3435,13.7183,225.0000,126, 56, 6000);

,

AddPrivateVehicle([iKustomize],522,-1364.7598,-213.3435,13.7183,225.0000,126, 56, 6000);

and

AddPrivateVehicle(iKustomize,522,-1364.7598,-213.3435,13.7183,225.0000,126, 56, 6000);

None of them worked just wondering if you could tell me where i am going wrong.

EDIT-

Also why would we put <pvehicles> as a include when your include file anme is "evf" should it not be #include <evf> ??
Your name is a string, try AddPrivateVehicle("iKustomize", ...); With the quotes.

Quote:
Originally Posted by ░▒▓█MoNeYGiMp█▓▒░
could you show an example of the AddPrivateVehicle as in a proper example - with a test vehicle added. whenever i add one it says Owner[Example] is not defined or w/e
There is a video in the mainpost, the first one i guess, watch it, there you can see it works, don't forget to add the 2 INC_ functions to your callbacks.

AddPrivateVehicle("(UvH)THIAZ99", 411, -1364.7598, -213.3435, 13.7183, 225.0000, 149, 149, 60);
Reply
#22

Nice, I'll test this out
Reply
#23

I'll use this for sure. Thanks.
Reply
#24

Ok that now works i neveer though of it like that.

Thanks Scott and ThiaZ

1 question about SavePrivateVehicle thou. i thought this would log where the vehicle is last left then when a player logs in it shall be there even after a restart. I tried this i loggout restarted my server and it was just at the co-ords i put in the script.

At the moment i just have 2 lines logged in "PrivateVehicle.txt"
Reply
#25

Quote:
Originally Posted by Danny-08
Ok that now works i neveer though of it like that.

Thanks Scott and ThiaZ

1 question about SavePrivateVehicle thou. i thought this would log where the vehicle is last left then when a player logs in it shall be there even after a restart. I tried this i loggout restarted my server and it was just at the co-ords i put in the script.

At the moment i just have 2 lines logged in "PrivateVehicle.txt"
You can use SavePrivateVehicle to save all vehicles at GMX/Exit, thats possible but you need to do LoadEVFVehiclesFromFiles(); on GameModeInit then, it checks the files and creates vehicles at the positions that are in the files

(Anyway, I thought of something like a /save command to save the vehicles ingame and load them after gmx or via command.)
Reply
#26

Nice Job !
Reply
#27

Great 6 years bump. Good game, well played!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)