Timers
#1

Hay, i want to do like when player spawn, it will show him in clientmessage how many miliseconds it did take him :3, I am not sure, but is this also releated to timers?
Reply
#2

GetTickCount is better for this in my opinion.. Check out these links below
GetTickCount
Tutorial
Reply
#3

Make a new global variable:

PHP код:
new spawncount
Under OnPlayerRequestClass:

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
spawncount GetTickCount();
    return 
1;

Under OnPlayerSpawn:

PHP код:
new spawntimestring[87];
    
format(spawntimestring87"It took you %d to select your class and spawn"GetTickCount() - spawncount);
    
SendClientMessage(playerid, -1spawntimestring); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)