Little Help here? LuxAdmin
#1

pawn Код:
if(text[0] == '*' && AccInfo[playerid][Level] >= 1)
    {
        new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"|ChatVip| %s: %s",string,text[1]);
        MessageToPlayerVIP(0xDC686BAA,string);
        SaveIn("ChatVipLog",string);
        return 0;
    }
In This Script It Will Use Level 1 Above
But I want Only Level 1 To Level 3

***Sorry For My bad English
Reply
#2

Replace this:
Код:
if(text[0] == '*' && AccInfo[playerid][Level] >= 1)
with this:
Код:
if(text[0] == '*' && AccInfo[playerid][Level] >= 1 && AccInfo[playerid][Level] <= 3)
Reply
#3

pawn Код:
if(text[0] == '*' && AccInfo[playerid][Level] == 1 || AccInfo[playerid][Level] == 2 || AccInfo[playerid][Level] == 3)
Reply
#4

pawn Код:
if(text[0] == '*' && AccInfo[playerid][Level] >= 1 && AccInfo[playerid][Level] < 4)
* * {
* * * * new string[128]; GetPlayerName(playerid,string,sizeof(string));
* * * * format(string,sizeof(string),"|ChatVip| %s: %s",string,text[1]);
* * * * MessageToPlayerVIP(0xDC686BAA,string);
* * * * SaveIn("ChatVipLog",string);
* * * * return 0;
* * }
EDIT: Not sure where all the *'s came from, but probably because I'm on an iPhone.
Reply
#5

This will do.
pawn Код:
if(text[0] == '*' && AccInfo[playerid][Level] == 1) || AccInfo[playerid][Level] == 2) || AccInfo[playerid][Level] == 3)
    {
        new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"|ChatVip| %s: %s",string,text[1]);
        MessageToPlayerVIP(0xDC686BAA,string);
        SaveIn("ChatVipLog",string);
        return 0;
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)