Whats Wrong With This Simple Script?
#1

I'm a N00B don't tell me I suck, I already know.
Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Connect and Disconnect MSGS");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print("Made By Marcus_Von");
	print("----------------------------------\n");
}

public OnPlayerConnect(playerid)
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string," Welcome To Our Server!",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    new
        string[64],
        name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(reason)
    {
        case 0: format(string,sizeof string,"%s left the server. (Disconnected)",name);
        case 1: format(string,sizeof string,"%s left the server. (Closed SA-MP)",name);
        case 2: format(string,sizeof string,"%s left the server. (Used Cheats)",name);
    }
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
Reply


Messages In This Thread
Whats Wrong With This Simple Script? - by xXxMarcuSxXx - 09.09.2010, 19:42
Re: Whats Wrong With This Simple Script? - by TouR - 09.09.2010, 19:44
Re: Whats Wrong With This Simple Script? - by Hiddos - 09.09.2010, 19:44
Re: Whats Wrong With This Simple Script? - by xXxMarcuSxXx - 09.09.2010, 19:47
Re: Whats Wrong With This Simple Script? - by TouR - 09.09.2010, 19:48
Re: Whats Wrong With This Simple Script? - by Hiddos - 09.09.2010, 19:50
Re: Whats Wrong With This Simple Script? - by xXxMarcuSxXx - 09.09.2010, 19:51
Re: Whats Wrong With This Simple Script? - by TouR - 09.09.2010, 19:54
Re: Whats Wrong With This Simple Script? - by xXxMarcuSxXx - 09.09.2010, 19:54
Re: Whats Wrong With This Simple Script? - by xXxMarcuSxXx - 09.09.2010, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)