24.08.2013, 07:09
public OnPlayerConnect(playerid)
{
new pname[MAX_PLAYER_NAME],str[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(str,sizeof(str), "* %s just connected to the server *", pname);
SendClientMessageToAll("00C940", str);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME],str[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(str,sizeof(str), "* %s just disconnected to the server *", pname);
SendClientMessageToAll("00C940", str);
return 1;
}
this doesent work
{
new pname[MAX_PLAYER_NAME],str[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(str,sizeof(str), "* %s just connected to the server *", pname);
SendClientMessageToAll("00C940", str);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME],str[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(str,sizeof(str), "* %s just disconnected to the server *", pname);
SendClientMessageToAll("00C940", str);
return 1;
}
this doesent work