16.05.2009, 21:14
Im trying to detect if a player is switching with a cheat to different virtualworld then normally.
I know this sounds a bit odd because it doesnt happen much and doesnt disturb like other cheats but i hate it when cheaters can do what they wants that basicly what me disturbs.
This is what i got but i doesnt works:
Any Ideas? Or isnt there a any solution to detect it?
I know this sounds a bit odd because it doesnt happen much and doesnt disturb like other cheats but i hate it when cheaters can do what they wants that basicly what me disturbs.
This is what i got but i doesnt works:
Код:
Above Main: ___________ new SaveWorld[MAX_PLAYERS]; In OnFilterScriptInit: ________________________ SetTimer("Check",2500,1); public Check() { for(new i; i < MAX_PLAYERS; i++) { if(SaveWorld[i] != GetPlayerVirtualWorld(i)) { Ban(i); } } return true; } public OnPlayerConnect(playerid) { SetPlayer_VirtualWorld(playerid,0); return true; } At the end of the script: ____________________________ stock SetPlayer_VirtualWorld(playerid,worldid) { SetPlayerVirtualWorld(playerid,worldid); worldid = SaveWorld[playerid]; }