HELP SendClientMessage?? +Rep
#1

why is message is not full



Code:
public OnPlayerConnect(playerid)
{
	new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"{E81010}***%s {1DB8F5}has joined the Server {00CF00}(Joined)*** !",pName);
    SendClientMessageToAll(-1,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, "{E81010}*** %s {1DB8F5}left the Server.{00CF00}(Timed Out/Crashed)***", name);
        case 1: format(szString, sizeof szString, "***{E81010}%s {1DB8F5}left the  Server.{00CF00}(Quit)***", name);
        case 2: format(szString, sizeof szString, "***{E81010}%s {1DB8F5}left the Server.{00CF00}(Kicked/Banned)***", name);
    }

    SendClientMessageToAll(-1, szString);
    return 1;
    }
Reply


Messages In This Thread
HELP SendClientMessage?? +Rep - by Mijata - 28.01.2015, 20:01
Re: HELP SendClientMessage?? +Rep - by Jefff - 28.01.2015, 20:03
Re: HELP SendClientMessage?? +Rep - by arlindi - 28.01.2015, 20:04
Re: HELP SendClientMessage?? +Rep - by Mijata - 28.01.2015, 20:04
Re: HELP SendClientMessage?? +Rep - by AdamsP - 28.01.2015, 20:08
Re: HELP SendClientMessage?? +Rep - by Mijata - 28.01.2015, 20:12
Re: HELP SendClientMessage?? +Rep - by Sawalha - 28.01.2015, 20:18
Re: HELP SendClientMessage?? +Rep - by arlindi - 28.01.2015, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)