SA-MP Forums Archive
IsPlayerTabbed(playerid) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: IsPlayerTabbed(playerid) (/showthread.php?tid=439697)



IsPlayerTabbed(playerid) - 69 - 26.05.2013

Summing it up, would be great to have that function.
Nuff said.


Re: IsPlayerTabbed(playerid) - Scenario - 26.05.2013

It's EASILY scriptable. And, there's a thread for suggestions already.


Re: IsPlayerTabbed(playerid) - 69 - 26.05.2013

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
It's EASILY scriptable. And, there's a thread for suggestions already.
Then script one lol.
BTW I'm talking about one that would go with the new 0.3x tab system with the little pic above your head.


Re: IsPlayerTabbed(playerid) - Scenario - 26.05.2013

pawn Код:
public OnPlayerUpdate(playerid)
{
    pLastUpdate[playerid] = gettime();
    return 1;
}

stock IsPlayerTabbed(playerid)
{
    if(pLastUpdate[playerid] < gettime()) return true;
    else return false;
}



Re: IsPlayerTabbed(playerid) - 69 - 26.05.2013

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
pawn Код:
public OnPlayerUpdate(playerid)
{
    pLastUpdate[playerid] = gettime();
    return 1;
}

stock IsPlayerTabbed(playerid)
{
    if(pLastUpdate[playerid] < gettime()) return true;
    else return false;
}
Somewhat, something tells me this will be extremely buggy and nothing like the SAMP tabbing system... mhhhhhhhhhh...


Re: IsPlayerTabbed(playerid) - Scenario - 26.05.2013

Nope, it shouldn't be buggy at all actually. This is the exact reason Kalcor didn't make a native function. It's already possible through 3 lines of code.

If you're the expert, do it yourself!