Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Código por bm0z Actualizado 19-07/2018
- new minimized[MAX_PLAYERS];
- public OnPlayerConnected(playerid)
- {
- minimized[playerid] = 0;
- }
- public OnPlayerUpdate(playerid)
- {
- minimized[playerid] = GetTickCount();
- }
- stock IsPlayerMinimized(playerid, ms = 5000)
- {
- return minimized[playerid] != 0 && GetTickCount() > (minimized[playerid] + ms);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement