SA-MP Forums Archive
[Pedido] player name - 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: [Pedido] player name (/showthread.php?tid=426016)



player name - Netinho_the_killer - 27.03.2013

Preciso que alguйm me conclua esse comando por favor

Код:
		new Raynz;
		Raynz = GetPlayerName(playerid, const name[], len);
		if(!Raynz == "[O.P.S]Raynz") SendClientMessage(playerid, 0x008000AA, "Nгo йs o Raynz");



Re: player name - Abravanel - 27.03.2013

pawn Код:
new
    gPlayerName[ 25 ];
GetPlayerName(playerid, gPlayerName, sizeof gPlayerName);

if (strcmp(gPlayerName,"[O.P.S]Raynz"))
    return SendClientMessage(playerid, -1, "Nгo йs o Raynz");



Re: player name - zSuYaNw - 27.03.2013

pawn Код:
static  
    uName[24]
;

GetPlayerName(playerid, uName, 24);


if(srcmp(uName, "[O.P.S]Raynz") != 0){  [  
    return SendCLientMessage(playerid, -1, "Vocк nгo й o rгns"),0;
}