[FilterScript] SIMPLE JOIN/QUIT MESSAGE FOR BEGINNER
#1

SIMPLE JOIN/QUIT MESSAGE

Hello! This my first FilterScript, i make a simple join/quit message
This is custom Quit Message with (" Crashed,Quit,Kicked/Banned");
And Join Message.


Code:
 /*
           Thread: https://sampforum.blast.hk/showthread.ph...5.56885841	   SIMPLE JOIN/QUIT MESSAGE
	   By med01
*/

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("*************************************");
	print(" SIMPLE JOIN/QUIT Message By med01");
	print("*************************************");
	return 1;
}

public OnFilterScriptExit()
{
	print(" Unloaded SIMPLE JOIN/QUIT Message By med01");
	return 1;
}
#endif

public OnPlayerConnect(playerid)
{
  new name[MAX_PLAYER_NAME];
  new string[120];
  
  GetPlayerName(playerid,name,sizeof(name));
  format(string,sizeof(string),"%s has Join the server.");
  SendClientMessage(playerid,-1,string);
  return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    new String[64];
    new name[MAX_PLAYER_NAME];

    GetPlayerName(playerid, name, MAX_PLAYER_NAME);

    switch(reason)
    {
        case 0: format(String, sizeof String, "%s left the server. (Crash)", name);
        case 1: format(String, sizeof String, "%s left the server. (Quit)", name);
        case 2: format(String, sizeof String, "%s left the server. (Kicked/Banned)", name);
    }

    SendClientMessageToAll(-1, String);
    return 1;
}
Sorry for my bad English
Reply
#2

Good job,I guess. Seen lots of FS like this
Reply
#3

Well uh... it's the same like this one
https://sampwiki.blast.hk/wiki/Creating_...Leave_Messages
Reply
#4

Nice One but simple
Reply
#5

You blatantly copied it, you didn't make anything.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)