06.01.2011, 18:07
pawn Код:
COMMAND:tempset(playerid, params[])
{
new user, f, string[128];
if(sscanf(params, "ud", user, f)) return SendClientMessage(playerid, COLOR_WHITE, "ERROR » That's not the way, try: /tempset (player) (faction)");
player[user][faction] = f;
format(string, sizeof(string), "NOTE » You were added to %s by %s.", fInfo[f][fName], RemoveUnderScore(playerid)); SendClientMessage(user, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "NOTE » You added %s to %s.", RemoveUnderScore(user), fInfo[f][fName]); SendClientMessage(user, COLOR_LIGHTBLUE, string);
//SavePlayerData(user, "faction", player[user][faction], 2);
return 1;
}