Sziasztok!
Remélem erre gondolsz
Ezt én fordítottam if(strcmp(cmd, \"/sid\", true) == 0) || !strcmp(cmdtext, \"/személyi\", true))
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, \" Nem vagy bejelentkezve!\");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, \"HINT: /sid [playerid/PartOfName]\");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(ProxDetectorS(8.0, playerid, giveplayerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), \" Megmutattad az adataidat %s -nak.\", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
SendClientMessage(giveplayerid, COLOR_GREEN, \"_______________________\");
format(string, sizeof(string), \" Név: %s Kor: %d\", sendername, PlayerInfo[playerid][pAge]);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), \" Tel.szám: %d\", PlayerInfo[playerid][pPnumber]);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
SendClientMessage(giveplayerid, COLOR_GREEN, \"_______________________\");
format(string, sizeof(string), \" %s megmutatta neked az adatait.\", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
return 1;
}