i have this code from natsheh for this plugin but i have no idea how to fix this
PHP Code:
// creating a circle around the player with 500 radius and 128 corner raise up the 128 to make the circle more smoothly..
new Float:fOrigin_Center[3]; pev(id, pev_origin, fOrigin_Center);
const divides = 128;
new Float:fOrigin[3];
new Float:fAngle[3], Float:AngleMulScalar = (360.0 / divides), Float:fVector[3];
const Radius = 500.0;
for(new i; i < divides; i++)
{
angle_vector(fAngle, ANGLEVECTOR_RIGHT, fVector);
xs_vec_mul_scalar(fVector, Radius, fVector);
xs_vec_add(fOrigin_Center, fVector, fOrigin);
// in here you can create the effects :)
fAngle[1] += AngleMulScalar;
}
// check if other players are out and slap them.
new ent = -1, players[32], pnum, ignore[33];
while( (ent = engfunc(EngFunc_FindEntityInSphere, ent, fOrigin_Center, Radius)) > 0)
{
if(is_user_alive(ent))
{
ignore[ent] = true;
}
}
get_players(players,pnum,"a")
for(new i,player; i < pnum; i++)
{
player = players[i];
if(ignore[player]) continue;
user_slap(player, random_num(2,10));
}
if anyone can make this plugin, then do this =)