Clanconfig.txt
#10

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
Reply


Messages In This Thread
Clanconfig.txt - by SonToku - 09.02.2011, 07:55
Re: Clanconfig.txt - by On_Top_Non_Stop - 09.02.2011, 08:26
Re: Clanconfig.txt - by SonToku - 09.02.2011, 08:55
Re: Clanconfig.txt - by SonToku - 09.02.2011, 09:19
Re: Clanconfig.txt - by Cameltoe - 09.02.2011, 09:42
Re: Clanconfig.txt - by SonToku - 09.02.2011, 10:26
Re: Clanconfig.txt - by Cameltoe - 09.02.2011, 10:38
Re: Clanconfig.txt - by SonToku - 09.02.2011, 11:12
Re: Clanconfig.txt - by SonToku - 09.02.2011, 14:00
Re: Clanconfig.txt - by Cameltoe - 09.02.2011, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)