My 1st Include Attempt Results In Epic Fail :(
#3

pawn Код:
AC_OnPlayerConnect(playerid)
{
    pMoney[playerid] = 0;
    return 1;
}
AC_OnPlayerDisconnect(playerid, reason)
{
    pMoney[playerid] = 0;
    return 1;
}
AC_OnPlayerUpdate(playerid)
{
    new pName[MAX_PLAYER_NAME], w = 0, string[128];

    if(GetPlayerMoney(playerid) > pMoney[playerid]){
        GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
        format(string, sizeof(string), "[VEGAS-BOT]: %s Has Been Banned From The Server! [Cheats Detected]", pName);
        SendClientMessageToAll(WHITE, string);
        BanEx(playerid, "[Cheats Detected]: Money Hax");
    }
    while(w < (sizeof(ForbiddenWeapons))){
        if(GetPlayerWeapon(playerid) == w){
            GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
            format(string, sizeof(string), "[VEGAS-BOT]: %s Has Been Banned From The Server! [Cheats Detected]", pName);
            SendClientMessageToAll(WHITE, string);
            BanEx(playerid, "[Cheats Detected]: Weapon Hax");
        }
    }
    return 1;
}
I havnt tested it although use that then put the functions in the callbacks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)