Nabend
Ich wollte mal euch fragen wo ich das im script einfügen muss
public OnPlayerConnect(playerid){
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s hat den Server Betreten.", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1; }
public OnPlayerDisconnect(playerid, reason){
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s hat den Server verlassen. (Error)", pName);
case 1: format(string, sizeof(string), "%s hat den Server verlassen.", pName);
case 2: format(string, sizeof(string), "%s hat den Server verlassen. (Kick/ban)", pName);
}
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}