07.10.2012, 09:07
Cum as putea ca la /cc cand executi comanda , chatul la admini si helperi sa ramana si la newbie si jucatori normali sa dispara ?
Code:
if(strcmp(cmd, "/cc", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { ClearChatboxToAll(playerid,100); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "XGamminG RPG: %s a sters chatul", sendername); SendClientMessageToAll(COLOR_LIGHTRED, string); //SendClientMessage(playerid,0x70AD52FF, "Chatul a fost sters cu succes!"); } else { SendClientMessage(playerid, COLOR_GRAD2, "You're not a Admin so you cannot use this command!"); return 1; } } }