13.12.2014, 13:41
Add to the conditional statement a another check by seperating each conditional statement with || or &&
like so
This will check if the player skin id equals to 4 OR to 5
|| is OR
&& is AND
So when you use
skin==4 || skin==5
it means if the skin equals to 4 or skin equals to 5 then do this
using && instead of || will change the condition from OR to AND
you can add as many conditions as you want as long as you seperate them by the OR || gate or AND && gate
like so
pawn Код:
if(GetPlayerSkin (playerid) == 4 || GetPlayerSkin (playerid) == 5)
|| is OR
&& is AND
So when you use
skin==4 || skin==5
it means if the skin equals to 4 or skin equals to 5 then do this
using && instead of || will change the condition from OR to AND
you can add as many conditions as you want as long as you seperate them by the OR || gate or AND && gate