13.08.2013, 11:01
Hello i need help when i make command /player to see other player info like /player [id], to see player fps player name ping kills
Thanks
Thanks
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;
}