20.06.2016, 17:35
Код:
CMD:unfreeze(playerid, params[]) { new sendername[MAX_PLAYER_NAME], giveplayer[24], string[128]; new para1; if(Player[playerid][pHelper] < 2 || Player[playerid][pAdmin] < 1) { SCM(pid, ADMIN_COLOR, ADMIN_MESSAGE); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(para1, giveplayer, sizeof(giveplayer)); if(para1 == INVALID_PLAYER_ID) { SCM(pid, -1, "Player is not connected."); return 1; } if(sscanf(params, "u", para1)) { SendClientMessage(playerid, COLOR_WHITE, "{00E6FF}USAGE:{FFFFFF} /freeze [PlayerID/PartOfName]"); return 1; } TogglePlayerControllable(para1, 1); format(string, sizeof(string), " You have been unfrozen by admin {FF0000}%s", sendername); SCM(para1, COLOR_GREY, string); format(string, sizeof(string), "{D11515}[AdmWarning]: {FF9203}%s {FFFFFF}has unfrozen {FF9203}%s", sendername, giveplayer); SendA4Message(-1, string); format(string, sizeof(string), " You have unfrozen player {FF0000}%s", giveplayer); SCM(pid, COLOR_WHITE, string); return 1; }
Example:
" [AdmWarning]: JXF has unfrozen JXF. "