How to Add Date in Chat ? +REP
#3

Quote:
Originally Posted by Krakuski
Посмотреть сообщение
There is the command '/timestamp' that is already in the SA-MP Client. Or do you need something that actually posts in the chat?

EDIT: Here you go!



pawn Код:
public OnPlayerText(playerid, text[])
{
    new Year, Month, Day, string[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name)); // Get the typer's name
    getdate(Year, Month, Day); // Get the time and store it into the variables above
    format(string,sizeof(string),"[%d/%d/%d] %s says: %s",Day,Month,Year,name,text); // Formats the text with the time variables
    SendClientMessageToAll( -1, string); // Send the message to all
    return 0; // Returning 0 will disable the traditional SAMP chat.
}
Not Work...
I using GameMode SATDM_v9...
Reply


Messages In This Thread
How to Add Date in Chat ? +REP - by WhiteAngels - 09.12.2013, 02:15
Re: How to Add Date in Chat ? +REP - by Krakuski - 09.12.2013, 02:32
Re: How to Add Date in Chat ? +REP - by WhiteAngels - 09.12.2013, 02:59
Re: How to Add Date in Chat ? +REP - by gotwarzone - 09.12.2013, 04:21
Re: How to Add Date in Chat ? +REP - by Sublime - 09.12.2013, 04:29
Re: How to Add Date in Chat ? +REP - by xHarshx - 09.12.2013, 04:45

Forum Jump:


Users browsing this thread: 1 Guest(s)