30.04.2014, 14:02
Topic says it.
pawn Код:
INI_String("JoinMessage",PlayerInfo[playerid][JoinMessage], 28);
pawn Код:
COMMAND:joinmessage(playerid, params[])
{
new string[128], pName[MAX_PLAYER_NAME], locfile[32];
if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: {FFFFFF}/joinmessage [message]");
format(string, sizeof(string), "You have set your Join Message to: %s", params);
SendClientMessage(playerid, -1, string);
GetPlayerName(playerid, pName, sizeof(pName));
format(locfile, sizeof(locfile), "accounts/%s.ini", pName);
new INI:file = INI_Open(locfile);
INI_WriteString(file, "JoinMessage", params);
INI_Close(file);
return 1;
}
pawn Код:
format(Message, sizeof(Message), "(%s) join message", PlayerInfo[playerid][JoinMessage]);