Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * --- iUtils ---
- * Por DanDRT(Danilo Galvão)
- * Agradecimentos: Willian.
- * [iPs]TeaM - ipsbr.net
- */
- #define Now iGetTimeStamp
- #define TimeStamp iGetTimeStamp
- stock IsNumeric(const string[])
- return !!strval(string);
- stock iGetTimeStamp()
- {
- new time[6], february, finaltime;
- gettime(time[0], time[1], time[2]);
- getdate(time[3], time[4], time[5]);
- february = (!((time[3] % 4) ^ 2) ? 29 : 28);
- if(!(february ^ 28))
- finaltime = 86400;
- finaltime += 27053635+(time[2] + (time[1] * 60) + (time[0] * 3600))+(((31*7)+(30*4)+february)+(time[5] * 86400) + (31536000 * (time[3]-1970)));
- return finaltime;
- }
- stock GetIP(playerid)
- {
- new Ip[16];
- GetPlayerIp(playerid, Ip, sizeof(Ip));
- return Ip;
- }
- stock GetPlayerNameEx(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement