• Welcome to Vice City Multiplayer.
 

Check Cmd

Started by Only a Dude, February 28, 2010, 05:56:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chn batista

i fix that just like this
#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";



Ettans

Yeah, like I said, anywhere on-top of your gamemode.

Jancis_LV

that one which Ettan give dont worked, but i little remake that:

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

chn batista

thanks for help :)
if i have more question i will start a new topic :)