[FilterScript] [FS] Flip the Vehicle! ( /FLIP Command ) - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Flip the Vehicle! ( /FLIP Command ) (
/showthread.php?tid=100312)
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
M0HAMMAD - 29.10.2014
easy and simple
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
Airblog - 31.10.2014
Nice
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
Devil143 - 25.02.2015
Hey bro..I'm making a sumo server and i want that /flip can only be used 2 times. need help
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
CalvinC - 25.02.2015
Quote:
Originally Posted by Devil143
Hey bro..I'm making a sumo server and i want that /flip can only be used 2 times. need help
|
Create a global variable for all players:
Code:
Flipped[MAX_PLAYERS];
Then in the top of the command, check if the vehicle is flipped twice:
Code:
if(Flipped[playerid] == 2) return SendClientMessage(playerid, -1, "You already flipped twice.");
And increase Flipped by 1 each time you use it.
Code:
Flipped[playerid] ++;