22.09.2016, 13:50
There's a samp function that counts the miliseconds since player was connected... simply use that...
this is mine, something similiar to yours:
this is mine, something similiar to yours:
PHP код:
forward TimeOnline();
public TimeOnline()
{
foreach(Player, i)
{
new seconds = NetStats_GetConnectedTime(i) / 1000;
new minutes = seconds / 60;
if(minutes >= 60)
{
SendClientMessage(i, COLOR_RED, "You've been online for 1 hour!");
PayDay(i);
}
// and so on...
}