[Help] How to create races? - 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: [Help] How to create races? (
/showthread.php?tid=583790)
[Help] How to create races? -
Dragonic - 31.07.2015
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).
Re: [Help] How to create races? -
!damo!spiderman - 31.07.2015
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
Re: [Help] How to create races? -
Dragonic - 31.07.2015
Can you give me an example on how to put this together?
Re: [Help] How to create races? -
!damo!spiderman - 31.07.2015
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
Re: [Help] How to create races? -
Dragonic - 31.07.2015
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...
Re: [Help] How to create races? -
ognyanov - 31.07.2015
pff you can use filterscripts for races,just search and you will find some.Good luck!!!..
Re: [Help] How to create races? -
Dragonic - 31.07.2015
I tried a few, none worked... I'm trying something else
Re: [Help] How to create races? -
PMH - 31.07.2015
Quote:
Originally Posted by Dragonic
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
Re: [Help] How to create races? -
Dragonic - 31.07.2015
I tried! But when I downloaded it only gave me .pwn and when I tried to compile it I received 2 errors
Re: [Help] How to create races? -
Dragonic - 31.07.2015
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..