[FilterScript] Simple Join Message
#1

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;
Reply
#2

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
Reply
#3

LOOOOOOOL!
THERE ARE MILLIONS OF THESE FS!!
Reply
#4

i was just bored so i posted this
Reply
#5

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!
Reply
#6

Stop acting like idiots...
Reply
#7

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

This fs is f**king easy..
Reply
#9

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

Stop being a scumbag.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)