SA-MP Forums Archive
[ajuda] SendClientMessageToAll - 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] SendClientMessageToAll (/showthread.php?tid=348579)



[ajuda] SendClientMessageToAll - goku114 - 06.06.2012

queria que alguem me ajuda-se queria um SendClientMessageToAll
que aparecesse quando logar o id e o nick se der +rep


Re: [ajuda] SendClientMessageToAll - Lucas_Alemao - 06.06.2012

pawn Код:
public OnPlayerConnect(playerid) {
    new string[128];
    new name[24];
    GetPlayerName(playerid, name, 24);
    format(string, 128, "Jogador %s [ID: %d] Conectado.", name, playerid);
    SendClientMessageToAll(-1, string);
    return 1;
}



Re: [ajuda] SendClientMessageToAll - EditPawn - 06.06.2012

pawn Код:
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, 32);
format(str, sizeof(str), "Jogador %s ID[%d] entrou no servidor", name, playerid);
SendClientMessageToAll(-1, str);
@EDIT
u.u,,,, ja postaram oO

rssrs

mals


Re: [ajuda] SendClientMessageToAll - Luciano* - 06.06.2012

Pra pegar o IP ficaria como?


Re: [ajuda] SendClientMessageToAll - 4LiSs0N - 06.06.2012

PHP код:
new pIP[16];
GetPlayerIp(playeridpIPsizeof(pIP)); 
nao tenho certeza


Re: [ajuda] SendClientMessageToAll - mau.tito - 06.06.2012

GetPlayerIp -> https://sampwiki.blast.hk/wiki/GetPlayerIp


Re: [ajuda] SendClientMessageToAll - Abravanel - 06.06.2012

Quote:
Originally Posted by Luciano*
Посмотреть сообщение
Pra pegar o IP ficaria como?
pawn Код:
public OnPlayerConnect(playerid)
{
    new Nome[MAX_PLAYER_NAME+1], msg[100], IP[16];
    GetPlayerName(playerid, Nome, MAX_PLAYER_NAME+1);
    GetPlayerIp(playerid, IP, 16);
    format(msg,100,"* O jogador %s[%i][IP:%s] se conectou ao servidor.",Nome,playerid, IP);
    SendClientMessageToAll(-1,msg);
    return 1;
}



Re: [ajuda] SendClientMessageToAll - LukisHard - 07.06.2012

GetPlayerName

GetPlayerIP