Truck Server
#1

thank you!
Reply
#2

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.
Reply
#3

have Skype??
Reply
#4

please someone..
Reply
#5

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.
Reply
#6

thank you
Reply
#7

anyone please??
Reply
#8

please?
Reply
#9

i did and it keeps spamming.. and truck respawns even if i attach..
Reply
#10

Make a variable:
pawn Код:
new pWarned[MAX_PLAYERS];

Alter the if statement from:
pawn Код:
if(IsATLCar(vehicleid))
to
pawn Код:
if(IsATLCar(vehicleid) && pWarned[playerid] == 0)
Make it so that when "You have 5 seconds" prints, it is set to 1.
pawn Код:
pWarned[playerid] = 1;
Set pWarned to 0 before the return in the OUTTRUCK function.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)