11.10.2011, 17:52
pawn Код:
CMD:factionname(playerid, params[])
{
new string[128];
if(PVar[playerid][pFaction] == 0)
{
return SendClientMessage(playerid, COLOR_RED, "[ERROR:] You are not in a faction");
}
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USE: /factionname [name]");
format(string, sizeof(string), "[INFO:] You have set factions name to %s", params);
SendClientMessage(playerid, COLOR_GREEN, string);
new factionid;
factionid = PVar[playerid][pFaction];
return FVar[factionid][fName] = params; // Says that this must be assigned to an array
}