16.08.2015, 23:09
(
Последний раз редактировалось DerickClark; 17.08.2015 в 00:02.
)
- Fixed
CMD:setmessage(playerid,params[]) { new accent[128], string[128]; if(sscanf(params,"s[128]",accent)) return SendClientMessage(playerid, -1, "Usage: /setmessage [custom message]"); format(string, sizeof(string), "You have set your Join Message to: %s", accent); SendClientMessage(playerid, -1, string); format(PlayerInfo[playerid][personalmsg], 128, "%s", accent); return 1; }
public OnPlayerConnect(playerid) { new Message[256]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(Message, sizeof(Message), "%s (%s) joined!", pName, PlayerInfo[playerid][personalmsg]); SendClientMessageToAll(-1, Message); return 1; }
new Stats[1000], string[128], accent; INI_WriteString(File,"Accent", "The New Player"); PlayerInfo[playerid][personalmsg] = accent;
format(PlayerInfo[playerid][personalmsg], 128, "%s", "The New Player");
Код:
CMD:setmessage(playerid,params[]) { new accent[128], string[128]; if(sscanf(params,"s[128]",accent)) return SendClientMessage(playerid, -1, "Usage: /setmessage [custom message]"); format(string, sizeof(string), "You have set your Join Message to: %s", accent); SendClientMessage(playerid, -1, string); format(PlayerInfo[playerid][personalmsg], 128, "%s", accent); return 1; } Код:
public OnPlayerConnect(playerid) { new Message[256]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(Message, sizeof(Message), "%s (%s) joined!", pName, PlayerInfo[playerid][personalmsg]); SendClientMessageToAll(-1, Message); return 1; } Код:
new Stats[1000], string[128], accent; INI_WriteString(File,"Accent", "The New Player"); PlayerInfo[playerid][personalmsg] = accent; Код:
format(PlayerInfo[playerid][personalmsg], 128, "%s", "The New Player"); |