08.01.2015, 21:29
Well i have seen a gamemode that uses like this:
example:
to make someone helper you do /sethelper [playerid][level],lets say i chose level 2,in script it does like this:
and to detect:
when i tried to use |= it gave me errors,why,please explain how to use it
example:
to make someone helper you do /sethelper [playerid][level],lets say i chose level 2,in script it does like this:
pawn Код:
PlayerInfo[playerid][pHelper] |= HELPER_ONE
PlayerInfo[playerid][pHelper] |= HELPER_TWO
pawn Код:
if(PlayerInfo[playerid][pHelper] & HELPER_ONE) // if he is helper level 1
{
}
if(PlayerInfo[playerid][pHelper] & HELPER_TWO) // if he is helper level 2
{
}