05.06.2010, 07:00
I saw a post saying if a player is paused, the function Onplayerupdate isnt called. So based on that i made this..
I added the
line so i could see if it worked or not while i tested it. Yet the line "Someone is paused" did not come up on the server screen like every other "Print" does.
It compiles no problem, just doesnt seem to actually work.
Is anyone able to help me out with this problem? Any help would be highly appreciated.
Quote:
forward PauseCheck(); public PauseCheck() { for(new i = 0; i < MAX_PLAYERS; i++) { if(OnPlayerUpdate(i) == 0) { new Float:X, Float:Y, Float:Z; GetPlayerPos(i, X, Y, Z ); playertextid = CreatePlayer3DTextLabel(i,"PAUSED",0xE60000FF,X,Y, Z,999); print("/n Someone is Paused"); } if(OnPlayerUpdate(i) == 1) { DeletePlayer3DTextLabel(i, playertextid); } } return 1; } |
Quote:
print("/n Someone is Paused"); |
It compiles no problem, just doesnt seem to actually work.
Is anyone able to help me out with this problem? Any help would be highly appreciated.