SA-MP Forums Archive
ChaseCar - 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: ChaseCar (/showthread.php?tid=285487)



ChaseCar - Kostas' - 24.09.2011

Hello,

I have a FS of ChaseCar.
I am begginer and i don't know from script, if someone can help me!
How can i make it, when a player get the ChaseCar, the speedboost/super jump/flip and the teleports not to work.
I have the same question for races too! When you race the speedboost not work up to finish the race.

Thanks,
Kostas


Re: ChaseCar - CmZxC - 24.09.2011

Do you have FS for speedboost/superjump(or fly) ?


Re: ChaseCar - Stigg - 24.09.2011

Try making a variable.
pawn Код:
new IsPlayerInChaseCar[MAX_PLAYERS];
Then you can use:
pawn Код:
IsPlayerInChaseCar[playerid] = 1;//on
pawn Код:
IsPlayerInChaseCar[playerid] = 0;//off
pawn Код:
if(IsPlayerInChaseCar[playerid] == 1)
Something like that in you script.