25.07.2016, 06:46
how do i make message like 'it takes you 80 miliseconds to load your stats'every player spawn?
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;
}
SendClientMessage(playerid, -1, "It takes you 80 miliseconds to load your stats");