OnPlayerText
#8

PHP код:
// Gamemode
public OnPlayerText(playeridtext[])
{
    new 
string[256];
    if(
text[0] == '#')
    {
        
format(stringsizeof(string), "[TEAM CHAT] %s | %d: %s"GetName(playerid), playeridtext[1]);
        
SendTeamMessage(GetPlayerTeam(playerid), COLOR_YELLOWstring);
        return 
0;
    }
    return 
0;
}
// Filterscripts (Work In Progress)
public OnPlayerText(playeridtext[])
{
    new 
string[256];
    
format(stringsizeof(string), "{%06x}%s | %d:"white" %s"GetPlayerColor(playerid) >>> 8GetName(playerid), playeridtext);
    
SendClientMessageToAll(-1string);
    return 
0;

Additional Notes;

The filterscript will be acting as the main system, where most of the admin commands and player commands can be found. The gamemode however will be some sort of round minigames (for example; 1.pwn is TDM, 2.pwn is Bombing & support.pwn will be the main system)
Reply


Messages In This Thread
OnPlayerText - by JaKe Elite - 03.12.2016, 12:35
Re: OnPlayerText - by JaKe Elite - 03.12.2016, 23:09
Re: OnPlayerText - by Tass007 - 03.12.2016, 23:21
Re: OnPlayerText - by JaKe Elite - 03.12.2016, 23:39
Re: OnPlayerText - by Tass007 - 03.12.2016, 23:51
Re: OnPlayerText - by JaKe Elite - 04.12.2016, 00:02
Re: OnPlayerText - by Tass007 - 04.12.2016, 00:04
Re: OnPlayerText - by JaKe Elite - 04.12.2016, 00:57
Re: OnPlayerText - by Tass007 - 04.12.2016, 02:26
Re: OnPlayerText - by Yaa - 07.12.2016, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)