19.07.2010, 08:24
pawn Код:
CMD:createclan(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new clantag[128];
new message[128];
new file[128];
if(sscanf(params, "s", clantag)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /createclan [tag]");
format(file, sizeof(file), "[%s]%s.ini", clantag, ReturnPlayerName(playerid));
dini_Set(file, "clantag", clantag);
format(message, sizeof(message), "You have successfully created the [%s] clan. Relog to use it.", clantag);
SendClientMessage(playerid, COLOR_LIGHTBLUE, message);
}
return 1;
}

