23.06.2016, 08:25
If the player is registering, what's the need for loading the ini file?
It doesn't even exist..
And to do your 10 minute thing, you need to do something like this:
It doesn't even exist..
And to do your 10 minute thing, you need to do something like this:
Код:
new connectTime[MAX_PLAYERS]; public OnPlayerConnect(playerid) { connectTime[playerid] = gettime(); return 1; } CMD:register(playerid) { if (gettime() - 10 * 60 < connectTime[playerid]) return // You can't use this command right now.. // Your register command return 1; }