10.12.2012, 19:23
Код:
if (strcmp(cmd,"/on",true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1) { new sMsg[ 128 ]; GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME ); SetPlayerColor(playerid, ZELENKASTA); SetPlayerArmour(playerid, 10000.0); SetPlayerHealth(playerid, 10000.0); format( sMsg, sizeof( sMsg ), "(DC)Admin %s e na dolznost.", sMsg ); SendClientMessageToAll(COLOR_LIGHTRED, sMsg); AdminDuty[playerid] = 1; } }
Код:
if (strcmp(cmd,"/off",true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1) { new sMsg[ 128 ]; GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME ); SetPlayerColor(playerid,TEAM_HIT_COLOR); SetPlayerHealth(playerid, 60); SetPlayerArmour(playerid, 0); format( sMsg, sizeof( sMsg ), "(DC)Admin %s vekje ne e na dolznost.", sMsg ); SendClientMessageToAll(COLOR_LIGHTRED, sMsg); AdminDuty[playerid] = 0; } }
[REP ++]