[Ajuda] OnPlayerDisconnect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] OnPlayerDisconnect (
/showthread.php?tid=460476)
OnPlayerDisconnect -
Speedpz - 28.08.2013
Eu coloquei um mensagem ao player sair do server, kick ban, conta propria, crash mais qndo eu coloco muito grande o frase corta alguem me ajuda ?
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new
szString[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(szString, sizeof(szString), "%s saiu do servidor por erro de conexгo ou crash", name);
case 1: format(szString, sizeof(szString), "%s saiu do servidor por vontade propria", name);
case 2: format(szString, sizeof(szString), "%s Saiu do servidor kickado ou banido", name);
}
SendClientMessageToAll(0xC4C4C4FF, szString);
Re: OnPlayerDisconnect -
Mteck - 28.08.2013
.. olha as cel
Re: OnPlayerDisconnect -
PT - 28.08.2013
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new
szString[256],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(szString, sizeof(szString), "%s saiu do servidor por erro de conexгo ou crash", name);
case 1: format(szString, sizeof(szString), "%s saiu do servidor por vontade propria", name);
case 2: format(szString, sizeof(szString), "%s Saiu do servidor kickado ou banido", name);
}
SendClientMessageToAll(0xC4C4C4FF, szString);