30.07.2013, 20:34
Hi, I'm new here and I bring you my new Tutorial
Uploaded by Time Timer is a simple but gets wasted ... It's beautifully without them ...
Declare variables:
Thank you to all the lovely evening: D
Uploaded by Time Timer is a simple but gets wasted ... It's beautifully without them ...
Declare variables:
Code:
new TempTime[MAX_PLAYERS char]; public OnPlayerConnect( playerid ) { TempTime{ playerid } = gettime(); //Set the current value of the variable unix tajm return 1; }
Code:
public OnPlayerDisconnect( playerid ,reason) { new TimeToTemp = gettime() - TempTime{ playerid } ;// Variable Time Temp will now contain the number of seconds that the player was online / / Variable we add to the player's timestamp file (DUdb, Dini, DOF2) return 1; }