[FilterScript] SIMPLE JOIN/QUIT MESSAGE FOR BEGINNER - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] SIMPLE JOIN/QUIT MESSAGE FOR BEGINNER (
/showthread.php?tid=480431)
SIMPLE JOIN/QUIT MESSAGE FOR BEGINNER -
med01 - 10.12.2013
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.php?tid=480431
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
Re: SIMPLE JOIN/QUIT MESSAGE FOR BEGINNER -
Gen3i - 10.12.2013
Good job,I guess. Seen lots of FS like this
Re: SIMPLE JOIN/QUIT MESSAGE FOR BEGINNER -
Uberanwar - 11.12.2013
Well uh... it's the same like this one
https://sampwiki.blast.hk/wiki/Creating_...Leave_Messages
Re: SIMPLE JOIN/QUIT MESSAGE FOR BEGINNER -
maaz - 11.12.2013
Nice One but simple
Re: SIMPLE JOIN/QUIT MESSAGE FOR BEGINNER -
dugi - 11.12.2013
You blatantly copied it, you didn't make anything.