if ( playerData[playerid][playerLevel] < Level_Here )
#8

Quote:
Originally Posted by TheToretto
View Post
Code:
COMMAND:alog(playerid, params[])
{
    if ( playerData[playerid][playerLevel] < 2 )
        return 0;

    if(playerData[playerid][showALog])
    {
        TextDrawHideForPlayer(playerid, alog1);
        TextDrawHideForPlayer(playerid, alog2);
        TextDrawHideForPlayer(playerid, alog3);
        TextDrawHideForPlayer(playerid, alog4);
        TextDrawHideForPlayer(playerid, alog5);
        playerData[playerid][showALog] = false;
        return SendClientMessage(playerid, 0xFF0770FF, "[ADMIN] {FFFFFF}You have un-toggled the administration log.");
    }
    else
    {
        TextDrawShowForPlayer(playerid, alog1);
        TextDrawShowForPlayer(playerid, alog2);
        TextDrawShowForPlayer(playerid, alog3);
        TextDrawShowForPlayer(playerid, alog4);
        TextDrawShowForPlayer(playerid, alog5);
        SendClientMessage(playerid, 0xFF0770FF, "[ADMIN] {FFFFFF}You have toggled the administration log.");
        return playerData[playerid][showALog] = true;
    }
    return 1;
}
thank you, whats with the other issues though? I can't seem to fix it
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)