17.05.2009, 14:03
i couldn't really understand your code, but this is how I'd do it:
Under The defines
Under OnFilterScriptInit or OnGameModeInit
Any Place on the script, except inside other callbacks.
Under The defines
pawn Код:
forward Virt();
pawn Код:
public OnFilterScriptInit()
{
SetTimer("Virt",2500,0);
return 1;
}
pawn Код:
public Virt()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (GetPlayerVirtualWorld(i)!=0)return BanEx(i,"Virtual World Cheats");
}
}
return 1;
}

