02.09.2011, 23:36
Let me explain:
In your script you find this line:
You will have to replace all that with:
You can edit the line at anytime.
now for the disconnect:
You will have this line:
Replace that all with
i hope you get it now
In your script you find this line:
pawn Код:
public OnPlayerConnect(playerid)
{
return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined knip_knap's server. Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
now for the disconnect:
You will have this line:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string,sizeof string,"%s knip_knap's server. (Timed out)",name);
case 1: format(string,sizeof string,"%s knip_knap's server. (Leaving)",name);
case 2: format(string,sizeof string,"%s knip_knap's server.(Kicked/Banned)",name);
}
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}

