SA-MP Forums Archive
[HELP]Disable Command Speed Boost in Race! - 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]Disable Command Speed Boost in Race! (/showthread.php?tid=281107)



[HELP]Disable Command Speed Boost in Race! - Macros50 - 04.09.2011

Hi. I tryed to disable the command speedboost, /turbo in race, with
Код:
if(Turbo[playerid]==1) return SendClientMessage(playerid,ROSSO,"[ERROR:] {FFFFFF}You can't use /turbo in race.");
But the speed boost don't disable in race... What I should write to disable speedboost and where? This is the filterscript Race with the SpeedBost integrated. http://pastebin.com/Fm71wDe0
Please Help me and sorry my really bad english.


Re: [HELP]Disable Command Speed Boost in Race! - [MWR]Blood - 04.09.2011

Make a variable to check if the player is in a race.


Re: [HELP]Disable Command Speed Boost in Race! - Macros50 - 04.09.2011

Code variable please


Re: [HELP]Disable Command Speed Boost in Race! - Phanto90 - 04.09.2011

There is a variable that indicates the player race.
If it's -1 the player isn't in race.
Код:
if(Giocatore[playerid][idgara]=-1 && */here goes condition of boost*/)
{
 /*boost functions*/
}



Re: [HELP]Disable Command Speed Boost in Race! - Macros50 - 04.09.2011

Thanks Phanto (scusa se ti parlo inglese) Under where i put this variable? Thanks