28.02.2014, 11:18
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..
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; }