Author Topic: Check Cmd  (Read 8540 times)

0 Members and 1 Guest are viewing this topic.

Offline chn batista

  • Wiseguy
  • **
  • Posts: 66
  • nothing
    • View Profile
Re: Check Cmd
« Reply #15 on: March 02, 2010, 04:47:18 pm »
i fix that just like this
Code: [Select]
#include <a_vcmp>
#include <core>
#include <float>
#include <dini>
#include <dudb>
#include <dutils>
 forward AntiCheat(playerid);
static szGameModeName[128] = "GUPS 1.15";
static szGameModeAuthorName[128] = "Falcon, Tamas, Xerxes, PlayerX";


Offline Ettans

  • VC:MP Beta Tester
  • Wiseguy
  • *
  • Posts: 56
    • View Profile
Re: Check Cmd
« Reply #16 on: March 02, 2010, 05:11:40 pm »
Yeah, like I said, anywhere on-top of your gamemode.

Offline Jancis_LV

  • Street Thug
  • *
  • Posts: 37
    • View Profile
    • Latvian Vice City
Re: Check Cmd
« Reply #17 on: March 02, 2010, 07:47:49 pm »
that one which Ettan give dont worked, but i little remake that:

Code: [Select]
public AntiCheat(playerid)
{
    for(new i = 0; i < 50; i++)
    {
        if(IsPlayerConnected(i))
{
    new Float:hp,
Float:armour;
GetPlayerHealth(i,hp);
GetPlayerArmour(i,armour);


    if(hp > 75)
    {
           // Do Stuff
    }
    else if(armour > 75)
    {
// Do Stuff
    }
        }
    }
    return 1;
}
Latvian Vice City server
78.84.47.75:5192

Offline chn batista

  • Wiseguy
  • **
  • Posts: 66
  • nothing
    • View Profile
Re: Check Cmd
« Reply #18 on: March 03, 2010, 08:01:15 am »
thanks for help :)
if i have more question i will start a new topic :)