14.08.2011, 01:34
Se usa la funcion GetTickCount
pawn Код:
new Tiempo[MAX_PLAYERS]; //Variable global
public OnPlayerConnect(playerid) {
Tiempo[playerid] = GetTickCount();
}
public OnPlayerSpawn(playerid)
{
new string[128];
new tiempo_final = (GetTickCount()-Tiempo[playerid]) / 1000;
format(string,sizeof(string)," Te has demorado %d segundos eligiendo tu skin",tiempo_final);
SendClientMessage(playerid,0xFFFF00AA,string);
}