Help with phone listening
#6

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
He must save the FBI player's id to variable, not on/off.
yeah, so the whole command would be like so:
pawn Код:
if(strmp(cmdtext, "/fbilisten")
{
    if(PlayerInfo[playerid][pMember] != 2)
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "You're not FBI!");
        return 1;
    }
    if(IsFBIListening[playerid] == 1) //off
    {
        IsFBIListening[playerid] = 0;
        return 1;
    }
    if(IsFBIListening[playerid] == 0) //on
    {
        IsFBIListening[playerid] = 1;
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Help with phone listening - by qUick1337 - 29.08.2011, 22:13
Re: Help with phone listening - by =WoR=Varth - 30.08.2011, 02:15
Re: Help with phone listening - by IceCube! - 30.08.2011, 02:19
Re: Help with phone listening - by Jack_Leslie - 30.08.2011, 02:52
Re: Help with phone listening - by =WoR=Varth - 30.08.2011, 02:55
Re: Help with phone listening - by Jack_Leslie - 30.08.2011, 02:59
Re: Help with phone listening - by =WoR=Varth - 30.08.2011, 03:08
Re: Help with phone listening - by qUick1337 - 30.08.2011, 10:20

Forum Jump:


Users browsing this thread: 1 Guest(s)