30.10.2011, 21:32
(
Последний раз редактировалось Colgate; 31.10.2011 в 02:47.
)
POST REMOVIDO.
enum asd
{
Float:x,
Float:y,
Float:z
};
new
Carol[MAX_PLAYERS][asd]
;
#define SetPlayerPos CarolSetPos
public OnGameModeInit()
{
SetTimer("Why", 1000, true);
return 1;
}
Why(p);
public Why(p)
{
if(IsHack(p)) return Ban(p);
OnSpawnPlayer(p);
return 1;
}
stock OnSpawnPlayer(p)
{
static
Float:e, Float:p, Float:q;
GetPlayerPos(p, z, p, q);
Carol[p][x] = e;
Carol[p][y] = p;
Carol[p][z] = q;
return 1;
}
stock CarolSetPos(p, Float:xis, Float:ips, Float:zee)
{
Carol[p][x] = xis;
Carol[p][y] = ips;
Carol[p][z] = zee;
SetPlayerPos(p, Float:xis, Float:ips, Float:zee);
return 1;
}
stock IsHack(p)
{
if(IsPlayerInRangeOfPoint(playerid, 500.0, Carol[p][x],Carol[p][y],Carol[p][z]) && !IsPlayerInAnyVehicle(p))
return true;
return false;
}