06.03.2012, 03:39
Make something like:
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.
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;
}