SA-MP Forums Archive
[FilterScript] Simple Join Message - 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 Message (/showthread.php?tid=482094)



Simple Join Message - rocker3410 - 19.12.2013

Simple Join Message
Well i know this is a small thing. but handy sometimes. It says like [playername] has joined the server!

well here is the code

Код:
#include <a_samp>

public OnPlayerConnect(playerid)
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s has joined Your Server Name Here!",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}

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

    GetPlayerName(playerid, name, MAX_PLAYER_NAME);

    switch(reason)
    {
        case 0: format(szString, sizeof szString, "%s left Your Server Name Here. (Timed Out/Crashed)", name);
        case 1: format(szString, sizeof szString, "%s left Your Server Name Here. (Quit)", name);
        case 2: format(szString, sizeof szString, "%s left Your Server Name Here. (Kicked/Banned)", name);
    }

    SendClientMessageToAll(0xC4C4C4FF, szString);
    return 1;



Re: Simple Join Message - FakkChass - 19.12.2013

Dude, I don't call this filterscript, because any-one even me can do this, actually, you shouldn't release this
so that's my oponion


Re: Simple Join Message - DeathFire - 19.12.2013

LOOOOOOOL!
THERE ARE MILLIONS OF THESE FS!!


Re: Simple Join Message - rocker3410 - 19.12.2013

i was just bored so i posted this


Re: Simple Join Message - doreto - 19.12.2013

I was bored and and decide to release this

pawn Код:
public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid,0xFFFFFFAA,"This is message");
    return 1;
}
It's a advance system, you may don't understand it from first time!


Re: Simple Join Message - nGen.SoNNy - 19.12.2013

Stop acting like idiots...


Re: Simple Join Message - ikey07 - 19.12.2013

Everyone can release what they want , if they think it can be useful for someone.


Re: Simple Join Message - FoxGaming - 19.12.2013

This fs is f**king easy..


Re: Simple Join Message - Biesmen - 19.12.2013

Everyone starts somewhere. It's great this guy is showing off what he has learned so far.

Stop being a scumbag.