11.05.2017, 12:20
Nothing special just thought i'd drop these four commands in here that i made for this.
Код:
CMD:skip(playerid, params[]) { if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command."); Duration = 5; format(global, sizeof (global),"{EE0020}[SERVER] Admin %s has skipped this map", GetName(playerid)); SendClientMessageToAll(-1, global); return 1; } CMD:more(playerid, params[]) { if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command."); Duration = 200; format(global, sizeof (global),"{EE0020}[SERVER] Admin %s has extended thismap", GetName(playerid)); SendClientMessageToAll(-1, global); return 1; } CMD:makehuman(playerid, params[]) { if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command."); new id, target[50]; if(sscanf(params,"s[50]", target)) return SendClientMessage(playerid,-1,"USAGE: /makehuman id]"); if (id == INVALID_PLAYER_ID) return ERROR(playerid,"Player isn't online."); SetPlayerHuman(playerid); format(global, sizeof (global), "{EE0020}[SERVER] Admin %s has set %s to Human", GetName(playerid), GetName(id)); SendClientMessageToAll(0xAA3333AA, global); UpdateTeams(); return 1; } CMD:makezombie(playerid, params[]) { if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command."); new id, target[50]; if(sscanf(params,"s[50]", target)) return SendClientMessage(playerid,-1,"USAGE: /makezombie id"); if (id == INVALID_PLAYER_ID) return ERROR(playerid,"Player isn't online."); SetPlayerZombie(playerid); format(global, sizeof global, "{EE0020}[SERVER] Admin %s has set %s to Zombie", GetName(playerid), GetName(id)); SendClientMessageToAll(0xAA3333AA, global); UpdateTeams(); return 1; }