ocmd:id(playerid,params[])
{
new pID,string[256];
if(sscanf(params,"ui",pID))return SendClientMessage(playerid,WEIß,"{FFFFFF}» {FF000F}Syntax: {FFFFFF}/ID {969696}[Name/ID]");
if(!IsPlayerConnected(pID))return SendClientMessage(playerid,GRAU,"Dieser Spieler ist nicht online.");
format(string,sizeof(string),"Name: %s | ID: %i | Level: %i | Ping: %i | FPS: %i",SpielerName(pID),pID,GetPlayerScore(pID),GetPlayerPing(pID),GetPlayerFPS(pID));
SendClientMessage(playerid,GRAU,string);
return 1;
}
stock mit fps:
stock GetPlayerFPS(playerid)
{
SetPVarInt(playerid, "DrunkL", GetPlayerDrunkLevel(playerid));
if(GetPVarInt(playerid, "DrunkL") < 100)
{
SetPlayerDrunkLevel(playerid, 2000);
}
else
{
if(GetPVarInt(playerid, "LDrunkL") != GetPVarInt(playerid, "DrunkL"))
{
SetPVarInt(playerid, "FPS", (GetPVarInt(playerid, "LDrunkL") - GetPVarInt(playerid, "DrunkL")));
SetPVarInt(playerid, "LDrunkL", GetPVarInt(playerid, "DrunkL"));
if((GetPVarInt(playerid, "FPS") > 0) && (GetPVarInt(playerid, "FPS") < 256))
{
return GetPVarInt(playerid, "FPS") - 1;
}
}
}
return 0;
}