Truck Server - 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: Truck Server (
/showthread.php?tid=569178)
Truck Server -
Ugaustin - 28.03.2015
thank you!
Re: Truck Server -
AndySedeyn - 28.03.2015
Check if the player is inside one of the trucks. Set a timer. Respawn the truck inside the timer if the player doesn't have a trailer attached to his truck.
You either try it yourself and post when you bump into a problem, download a filterscript that fits your needs or request a scripter to help/script you with the script in the correct topic.
Re: Truck Server -
Ugaustin - 28.03.2015
have Skype??
Re: Truck Server -
Ugaustin - 28.03.2015
please someone..
Re: Truck Server -
Alex Magaсa - 28.03.2015
https://sampwiki.blast.hk/wiki/CreateVehicle
Quote:
Originally Posted by Wiki
modelid The model for the vehicle.
Float:X The X coordinate for the vehicle.
Float:Y The Y coordinate for the vehicle.
Float:Z The Z coordinate for the vehicle.
Float:angle The facing angle for the vehicle.
color1 The primary color ID.
color2 The secondary color ID.
respawn_delay The delay until the car is respawned without a driver in seconds. Using -1 will prevent the vehicle from respawning.
|
If you use any gamemode from SA-MP try to find "create trailer" inside gamemode.
Re: Truck Server -
Ugaustin - 29.03.2015
thank you
Re: Truck Server -
Ugaustin - 29.03.2015
anyone please??
Re: Truck Server -
Ugaustin - 29.03.2015
please?
Re: Truck Server -
Ugaustin - 29.03.2015
i did and it keeps spamming.. and truck respawns even if i attach..
Re: Truck Server -
maramizo - 29.03.2015
Make a variable:
pawn Код:
new pWarned[MAX_PLAYERS];
Alter the if statement from:
to
pawn Код:
if(IsATLCar(vehicleid) && pWarned[playerid] == 0)
Make it so that when "You have 5 seconds" prints, it is set to 1.
Set pWarned to 0 before the return in the OUTTRUCK function.