Help with a hack / hacker
#7

Make something like:

pawn Код:
cmd:gethackerpos(playerid, params[])
{
    new hacker;
    if(sscanf(params, "u", hacker))
    {
    }
    if(playerid[admin]>0)
    {
        new Float:x, Float:y, Float:z, carid;
        GetPlayerPos(playerid, x, y, z);
        carid = GetPlayerVehicleID(playerid);
        GetVehicleModel(carid);
        if((z > 50/*<---Change this*/) && carid == /*Helicopterid*/)
        {
            new string[126];
            format(string, sizeof(string), "Possible hacker: %s", GetPlayerName(hacker));
            SendClientMessage(playerid, COLOR, string);
        }
    }
    return 1;
}
Obviously needs lots of editing, but yeah, you can also make a new variable for the player, so when they enter a helicopter, or plane, they get it set, and you can type something like /airplayers and it would give you a list of any player with that variable set to 1, when they exit set it to 0.
Reply


Messages In This Thread
Help with a hack / hacker - by lolumadd_ - 06.03.2012, 02:48
Re: Help with a hack / hacker - by Saurik - 06.03.2012, 03:09
Re: Help with a hack / hacker - by Jake187 - 06.03.2012, 03:11
Re: Help with a hack / hacker - by [UE]Milan - 06.03.2012, 03:14
Re: Help with a hack / hacker - by Saurik - 06.03.2012, 03:15
Re: Help with a hack / hacker - by Jake187 - 06.03.2012, 03:18
Re: Help with a hack / hacker - by Dr - 06.03.2012, 03:39
Re: Help with a hack / hacker - by niyaz - 06.03.2012, 07:31
Re: Help with a hack / hacker - by [MM]IKKE - 06.03.2012, 07:44
Re: Help with a hack / hacker - by Deduction - 06.03.2012, 08:18

Forum Jump:


Users browsing this thread: 2 Guest(s)