01.10.2010, 12:17
pawn Код:
CMD:dajlidera(playerid, params[])
{
new id,faction;
if(sscanf(params,"ud",id,faction)) return SendClientMessage(playerid,colorred,"USAGE: /dajilidera [playerid] [factionid]");
else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,colorre,"ERROR: Disconnected player!");
format(file, 128, "/SRP/%s.ini", GetName(id));
dini_IntSet(file, "Frakcja", faction);
return 1;
}