Need Help
#1

Hi I add SendDeathMessage if someone kill someone now I want to add if someone Disconnect (RED) and Join (BLUE) how to add it in Script ?

I have this but this only show it Chat..

Код:
public OnPlayerDisconnect(playerid)
{
	new string[128], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    format(string, sizeof(string), "{FFFF00}Player {FF0000}%s {FFFF00}has Left {FF0000}UltimatieFreestyl",pName);
    SendClientMessageToAll(playerid, string);
	return 1;
}
Код:
public OnPlayerDisconnect(playerid, reason)
{
    new string[128], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    format(string, sizeof(string), "{FFFF00}Player {FF0000}%s {FFFF00}has Joined {FF0000}UltimateFreestyl",pName);
    SendClientMessageToAll(playerid, string);
    return 1;
}
Reply
#2

public OnPlayerConnect(playerid)
{
SendDeathMessage(,playerid,200);}
public OnPlayerDisconnect(playerid)
{
SendDeathMessage(,playerid,201);}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)