25.07.2016, 11:24
I'm not sure why you would ever want this... but this is how you would do it.
https://sampwiki.blast.hk/wiki/GetTickCount
PHP код:
public OnPlayerSpawn(playerid)
{
new
fstr[50], // This will be used to format the string being sent to the player
LoadTime = GetTickCount() // We will use this variable to store the loading times.
;
// Load user stats here... (I can't imagine why you would do this every time the player spawns... but oh well...
format(fstr, sizeof(fstr), "It took %d milliseconds to load your stats.", GetTickCount() - LoadTime);
SendClientMessage(playerid, -1, fstr);
// Rest of OnPlayerSpawn...
return 1;
}