[Help] How to create races?
#1

So, how can I create races with checkpoints? Like if a player type /race, he'll be teleported to a specific location and then the checkpoints will be shown for him and all that stuff, when he pass through one CP another will appear (hope you get the point).
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerCommandText
https://sampwiki.blast.hk/wiki/SetVehiclePos
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
Reply
#3

Can you give me an example on how to put this together?
Reply
#4

Do you know any scripting at all?

Basically have an array of your points for the checkpoints, have a variable which tracks each players checkpoint id. When the player enters the command set their vehicle position to where the race is, then set the first checkpoint. When they go through a checkpoint the function OnPlayerEnterCheckpoint will be called, just increase their checkpoint id by 1 then set their new checkpoint and so on until the end
Reply
#5

Quote:

Do you know any scripting at all?

Yes, a bit... I'm trying to learn. About the teleport and stuff its fine, but I don't know how to make the lines for when a player enters the first CP it starts to show the second...
Reply
#6

pff you can use filterscripts for races,just search and you will find some.Good luck!!!..
Reply
#7

I tried a few, none worked... I'm trying something else
Reply
#8

Quote:
Originally Posted by Dragonic
View Post
I tried a few, none worked... I'm trying something else
Use Rryder's racing filterscript. Its the best one out there wothout any bigs. U gotta search it though
Reply
#9

I tried! But when I downloaded it only gave me .pwn and when I tried to compile it I received 2 errors
Reply
#10

Tried Ryder's once again... Dunno what happend but it don't create the race...
Can someone please give me an example on how to when the player go through one CP, another will appear..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)