26.02.2010, 18:49
you can even add this callback into several filterscripts. just dont forget to place the return 1; in order to let them work properly
Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
SendClientMessageToAll(0xFFFF00AA,"NPC detected.");
}
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"** %s joined the game.",name);
SendClientMessageToAll(0xffffffff,string);
return 1;
}

