02.04.2010, 12:05
You must get that player's name, who disconnects( without iteration ).
E: Ragidon was faster..
pawn Код:
public OnPlayerDisconnect(playerid,reason)
{
new string[ 128 ];
switch( reason ) {
case 0 : format( string, sizeof string, "~w~%s ~b~has ~y~joined ~b~the server~w~ (~r~TIME-OUT~W~)", GetPlayerNameEx( playerid ) );
case 1 : format( string, sizeof string, "~w~%s ~b~has ~y~joined ~b~the server~w~ (~r~LEAVING~W~)", GetPlayerNameEx( playerid ) );
case 2 : format( string, sizeof string, "~w~%s ~b~has ~y~joined ~b~the server~w~ (~r~KICK~w~/~r~BAN~W~)", GetPlayerNameEx( playerid ) );
TextDrawSetString( Connect, string );
TextDrawShowForAll( Text:Connect );
SetTimer( "SendConnectMessageStop", 6000, 0 );
}
return 1;
}
