SA-MP Forums Archive
If true then If false then - 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: If true then If false then (/showthread.php?tid=286771)



If true then If false then - wumpyc - 30.09.2011

Hey guys i'm making seatbelt system...and i am asking how can i make that if player typed the command seatbelt then dont jail him and if he didnt jail him...please HELP


Re: If true then If false then - SuperViper - 30.09.2011

pawn Code:
if(Seatbelt[playerid]) {
    // Insert your code here if the seatbelt is on
} else {
    // Inserrt your code here if the seatbelt is off
}
Make sure to change the variable if I didn't nail it.