Rough Sketch? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Rough Sketch? (
/showthread.php?tid=275294)
Rough Sketch? -
ToPhrESH - 09.08.2011
I have a FPS command, and warning if a player has a certain minimum amount of FPS. I was wondering..
Could someone possibly make a rough outline or sketch of an /fpslist command I am trying to make? I am totally hopeless, and do not know how to start it..
I said just a rough sketch outline, not a huge script.
Re: Rough Sketch? - [L3th4l] - 09.08.2011
pawn Код:
CMD:fps(playerid, params[])
{
new
iData[512]; // Increase if necessary
foreach(Player, i)
{
format(iData, sizeof(iData), "%s%s: FPS: %i\n", iData, pName(i), GetPlayerFPS(i)); // Or however you get FPS
}
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "Player's FPS", iData, "Ok", "");
return 1;
}
-
ToPhrESH - 09.08.2011
Wow, you did the whole 9 yards, thanks man. All I asked for was just a rough sketch, and you gave me more! Thanks ALOT for the help!
Cheers! And regards!
Sorry for double post but:
I tested it with multiple people, and it only shows the player who types /fpslist. Only their fps displays and no one else.