05.05.2010, 10:50
simply here is the whole code :
Top Of Script :
Under Your /afk Command :
Under Your /brb Command :
Under Your /back Command :
Top Of Script :
Код:
new AFK[MAX_PLAYERS]; new BRB[MAX_PLAYERS];
Код:
AFK[playerid] = 1;
Код:
BRB[playerid] = 1;
Код:
AFK[playerid] = 0; BRB[playerid] = 0;
Код:
public OnPlayerText(playerid, text[]) { if(AFK[playerid] == 1) { SendClientMessage(playerid, COLOR_RED, "You are AFK , You Can't Speak Until You Are Back (/back)"); return 0; } if(BRB[playerid] == 1) { SendClientMessage(playerid, COLOR_RED, "You are BRB , You Can't Speak Until You Are Back (/back)"); return 0; } return 1; }