Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: wyszedł
1. Wszedł / Wyszedł
Witam, posiadam taki skrypcik kt?ry pokazuje kto wbija na serwer i wychodzi, lecz po kt?rym? tam z kolei do??czeniu / wyj?ciu urywa kawa?ek z informacji.

Kod

Kod:

#include <a_samp>
#include <a_http>

public OnPlayerConnect(playerid)
{

PlayAudioStreamForPlayer(playerid, "http://www.polskastacja.pl/play/aac_hot100.pls");

new szString[64],playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);

StopAudioStreamForPlayer(playerid);

format(szString, sizeof szString, "Gracz %s (ID %d) wbi? na serwer!", playerName, playerid);
SendClientMessageToAll(-1, szString);


return 1;
}

public OnPlayerSpawn(playerid)
{

StopAudioStreamForPlayer(playerid);

return 1;
}



public OnPlayerDisconnect(playerid, reason)
{
new
szString[64],
playerName[MAX_PLAYER_NAME];

GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);

new szDisconnectReason[3][] =
{
"Timeout/Crash",
"Quit",
"Kick/Ban"
};

format(szString, sizeof szString, "Gracz %s (ID %d) (%s) wyszed? z serwera! (%s).", playerName, playerid, szDisconnectReason[reason]);

SendClientMessageToAll(-1, szString);
return 1;
}


Jest tu jaki? b??d? Bo pwn normalnie to komplikuje do .amx
Prosz? o pomoc. [/code]