SA-MP Forums Archive
show player info - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: show player info (/showthread.php?tid=454396)



show player info - Configuration - 28.07.2013

hello i have one command in my server /player and he tell me how much kill i have do ping and fps but i need to make this like /player [id] and for see him info please help me
Thanks


Re: show player info - Areax - 28.07.2013

Show your code.


Re: show player info - Configuration - 28.07.2013

pawn Код:
if (strcmp(cmdtext, "/player", true) == 0)
{
new string[999];
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"Player: %s (ID:%d)",pName, playerid);
    SendClientMessage(playerid,0xE89B5BBB ,string);
    format(string,sizeof string,"> FPS: %d",FPS2[playerid]);
    SendClientMessage(playerid,-1 ,string);
    format(string,sizeof string,"> Ping: %d",GetPlayerPing(playerid));
    SendClientMessage(playerid,-1 ,string);
    format(string,sizeof string,"> Kills: %d",Kills[playerid]);
    SendClientMessage(playerid,-1 ,string);
return 1;
}



Re: show player info - Configuration - 28.07.2013

anyone?


Re: show player info - EvanA - 28.07.2013

Not sure.


Re: show player info - MellowHammer - 28.07.2013

Quote:
Originally Posted by EvanA
Посмотреть сообщение
Not sure.
Don't post then.