getting location
#2

Код:
public OnPlayerText(playerid, text[])
{
    new
        hours, // Variable for hours
        minutes, // Variable for minutes
        seconds, // Variable for seconds
        string[128], // String
        name[MAX_PLAYER_NAME] // String for name
    ;
    GetPlayerName(playerid,name,sizeof(name)); // Get the typer's name
    gettime(hours, minutes, seconds); // Get the time and store it into the variables above
    format(string,sizeof(string),"[%d:%d:%d] %s says: %s",hours,minutes,seconds,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.
}
https://sampwiki.blast.hk/wiki/Client_Commands

/timestamp
Reply


Messages In This Thread
getting location - by suni - 19.06.2015, 13:15
Re: getting location - by DDR3 - 19.06.2015, 15:14
Re: getting location - by suni - 19.06.2015, 15:46
Re: getting location - by Stanford - 19.06.2015, 16:04

Forum Jump:


Users browsing this thread: 2 Guest(s)