30.05.2015, 13:32
Код HTML:
if(strcmp(cmd, "/aod", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 1) { if(AdminDuty[playerid] == 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "{FF0000}[Admin Info] {FFFFFF}%s [{FF0000}ID: {FFFFFF}%d] - Numai e la datorie {80FF00}[nu il mai contactati]", sendername,playerid); SendClientMessageToAll(COLOR_DBLUE,string); AdminDuty[playerid] = 0; SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,0); SetPlayerToTeamColor(playerid); DeletePlayer3DTextLabel(playerid, duty); } else { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "{FF0000}[Admin Info] {FFFFFF}%s [{FF0000}ID: {FFFFFF}%d] - E la datorie {80FF00}[daca aveti nevoie de ajutor {FF0000}/w %s{80FF00}]",sendername,playerid); SendClientMessageToAll(0xFAAFBEFF,string); AdminDuty[playerid] = 1; SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,100); new Text3D:duty = Create3DTextLabel("Admin On-Duty", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(duty, playerid, 0.0, 0.0, 0.7); } } else { SendClientMessage(playerid,COLOR_GREY,"{FF0000}[Play-Hard]: {FFFFFF}Nu ai acces."); } return 1; }