12.04.2014, 15:21
There anywhere I can add it as Y_Ini.
savin as Y_Ini
PlayerInfo[playerid][JoinMessage]
savin as Y_Ini
PlayerInfo[playerid][JoinMessage]
pawn Код:
COMMAND:joinmessage(playerid, params[])
{
new string[128], file[128], pName[MAX_PLAYER_NAME];
if(isnull(params)) return SendClientMessage(playerid, COLOUR_RED, "USAGE: {FFFFFF}/joinmessage [message]");
format(string, sizeof(string), "You have set your Join Message to: %s", params[0]);
SendClientMessage(playerid, -1, string);
GetPlayerName(playerid, pName, sizeof(pName));
format(file, sizeof(file), "accounts/%s.ini", pName);
dini_Create(file);
dini_Set(file, "personalmsg", params[0]);
return 1;
}