15.12.2012, 01:40
Chat while server restart(only tested in a local server):
Make a FS with this code:
Add this to your gamemode:
Make a FS with this code:
pawn Код:
#include <a_samp>
public OnPlayerText(playerid, text[])
{
if(!CallRemoteFunction("Running", ""))
{
new str[128 + MAX_PLAYER_NAME];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
format(str, sizeof str, "{808080}%s:{FFFFFF} %s", str, text);
SendClientMessageToAll(-1, str);
}
return 1;
}
pawn Код:
forward Running();
public Running() return 1;