Timers Dont work
#3

Could you please post your SendClientMessageToAdmins function for me?
There is something in there that is obviously not right.

Here is a small fix for some of your script:
pawn Код:
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    SetTimer("chkhealth",60000,true);
    SetTimer("chkweapons",60000,true);
    SetTimer("chkarmour",60000,true);
    SetTimer("chkmoney",60000,true);
    SetTimer("chkskin",60000,true);
    return 1;
}

forward chkhealth();
public chkhealth()
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) {
    if(logged[i] == 1) {
    new astring[MAX_PLAYER_NAME+54],pname[MAX_PLAYER_NAME],Float:hp;
    GetPlayerHealth(i,hp);
    if(hp != health[i]) {
    GetPlayerName(i, pname, MAX_PLAYER_NAME);
    format(astring,sizeof(astring),"%s(%i) is possibly health hacking, please investigate!",pname,i);
    SendClientMessageToAdmins(0xFF0000FF,astring);
    } } } }
    return 1;
}

forward chkarmour();
public chkarmour()
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) {
    if(logged[i] == 1) {
    new astring[MAX_PLAYER_NAME+54], pname[MAX_PLAYER_NAME],Float:parmour;
    GetPlayerArmour(i,parmour);
    if(parmour != armour[i]) {
    GetPlayerName(i, pname, MAX_PLAYER_NAME);
    format(astring,sizeof(astring),"%s(%i) is possibly armour hacking, please investigate!",pname,i);
    SendClientMessageToAdmins(0xFF0000FF,astring);
    armour[i] = parmour;
    } } } }
    return 1;
}
Reply


Messages In This Thread
Timers Dont work - by jtemple042996 - 04.07.2012, 18:00
Re: Timers Dont work - by jtemple042996 - 06.07.2012, 00:28
Re: Timers Dont work - by clarencecuzz - 06.07.2012, 01:12
Re: Timers Dont work - by [KHK]Khalid - 06.07.2012, 01:27
Respuesta: Timers Dont work - by Chris1337 - 06.07.2012, 01:45
Re: Timers Dont work - by jtemple042996 - 06.07.2012, 04:14
Re: Timers Dont work - by clarencecuzz - 06.07.2012, 04:19
Re: Timers Dont work - by [MM]RoXoR[FS] - 06.07.2012, 05:34

Forum Jump:


Users browsing this thread: 1 Guest(s)