[FilterScript] [FS] Flip the Vehicle! ( /FLIP Command )
#21

easy and simple
Reply
#22

Nice
Reply
#23

Hey bro..I'm making a sumo server and i want that /flip can only be used 2 times. need help
Reply
#24

Quote:
Originally Posted by Devil143
View Post
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] ++;
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)