OnPlayerConnect in a filterscript
#1

i am looking to create a filterscript which utilises the above fufunction. What do i need to return to make sure it doesnt overrule the gamemode script

ie return 1
Reply
#2

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)