09.02.2015, 16:33
pawn Код:
COMMAND:fps(playerid,params[])
{
new targetid;
new string[256];
if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, LIGHTGREEN, "Usage:/fps <ID>");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, ADMIN_RED, "That Player is not Connected!");
format(string, sizeof(string), "%s's (%d) Current Fps is: %d.", PlayerName(targetid), targetid, pFPS);
SendClientMessage(playerid, LIGHTGREEN, string);
return 1;
}