public OnPlayerText(playerid, text[]) {new string[256];if(IsPlayerAdmin(playerid)) return format(string, sizeof(string), \"{%06x}%s: {ff0000}%s\", GetPlayerColor(playerid) >>> 8, PlayerName(playerid),text),SendClientMessageToAll(-1, string), 0;return 1;}
public OnPlayerText(playerid, text[]) {new string[256];if(Info[playerid][admin] != 1 && (playerid)) return format(string, sizeof(string), \"{%06x}%s: {ff0000}%s\", GetPlayerColor(playerid) >>> 8, PlayerName(playerid),text),SendClientMessageToAll(-1, string), 0;return 1;}
public OnPlayerText(playerid, text[]) {new string[256];if(Info[playerid][admin] == 1) {format(string, sizeof(string), \"{%06x}%s: {ff0000}%s\", GetPlayerColor(playerid) >>> 8, PlayerName(playerid), text);return SendClientMessageToAll(-1, string), 0;}return 1;}
Info[playerid][admin] == 1
public OnPlayerText(playerid, text[]) {new string[256];if(Info[playerid][admin] >= 1) {format(string, sizeof(string), \"{%06x}%s: {ff0000}%s\", GetPlayerColor(playerid) >>> 8, PlayerName(playerid), text);SendClientMessageToAll(-1, string); return 0;}return 1;}
public OnPlayerText(playerid, text[]) {new string[256];if(IsPlayerAdmin(playerid) return format(string, sizeof(string), \"{%06x}%s: {ff0000}%s\", GetPlayerColor(playerid) >>> 8, PlayerName(playerid),text),SendClientMessageToAll(-1, string);return 0;}
Info[playerid][admin] == 1 ezen állítgass
Info[playerid][admin] == 1 ezen állítgass Na alakul Most az van,hogy fordítva kéne,mert jelenleg így vanPlayer szövege piros!Admin szövege fehérEzt meg lehetne fordítani? [/quote] Info[playerid][admin] < 0
Info[playerid][admin] < 0