[Ajuda] Dъvida - 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] Dъvida (
/showthread.php?tid=415144)
Dъvida -
vitorvlv - 11.02.2013
To cheio de dъvidas hj,e essa й meio retardada :C
Como eu pego o nome de dois players ?
exemplo no comando kick
o Administrador %s < nome um | kickou o player %s < nome dois
Tб,acho que deu de entender e.e
Re : Dъvida -
BartGT - 11.02.2013
Final do seu Game Mode
Код:
stock getPName(playerid)
{
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, MAX_PLAYER_NAME+1);
return name;
}
No seu comando de kick.
Код:
format(string, sizeof(string), "O Administrador %s | Kickou o Player %s", getPName(playerid), getPName(id));
Acho que isso dб pra vocк ter uma noзгo, cara.
OBS: nгo esqueзa de definir no topo do comando (antes da abertura da chave em rsrs)
Код:
new string[128], id;