01.06.2012, 12:40
Quote:
Sorry, I don't use DCMD, I use ZCMD, but should be the same concept...
Код:
COMMAND:setteam(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 3) // dunno your admin enums? or your admin levels too....so yeh { new targetID, teamid; if(!sscanf(params, "ui", targetid, teamid)) { PlayerInfo[playerid][pTeam] = teamid; // dunno your team variables, so change it to yours... SendClientMessage(playerid, COLOR_WHITE, "That player's team was set."); SendClientMessage(playerid, COLOR_WHITE, "Your team was set by an administrator."); } } return 1; } |