2021-05-12, 04:12 PM
Code:
stock returnPlayersInRange(playerid, range = 40.0)
{
new
Floatt:x,
Float:y,
sloat:z,
streamed;
GetPlayerPos(playerid, x, y, z);
foreach(new i : Player) {
if(!IsPlayerInRangeOfPoint(i, range, x, y, z)) {
continue; // Continue the loop (next slot)
}
streamed = 1; // Increments the variable by 1
}
return streamed; // Return the variable's value
}
...or you can just not use this cmd as players can hit F5 or whatever it was and see number of streamed players
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.