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