09.02.2011, 19:19
pawn Код:
command(cname, playerid, params[])
{
new cTeam, cName[50];
if(sscanf(params, "is[50]", cTeam, cName)) return SendClientMessage(playerid, COLOR_RED, "Usage: /cname [ Team ( 1 - 2 ) - Name");
if(cTeam == 1 ) ChangeClanName(TEAM1, cName);
else if(cTeam == 2 ) ChangeClanName(TEAM2, cName);
else return SendClientMessage(playerid, COLOR_RED, "Error: Invalid team.");
}
Not sure if it works though :PP