Quote:
Originally Posted by BigETI
I would really like to know, in which cases exactly are those random functions useful.
|
Some of them can be scripted, but they would be better integrated in the Streamer Plugin. Every function has it's use, we can find use for everything. I personally need just GetRandomPlayerInDynamicArea, instead of using a loop and getting the first player in it I would use that random thing. I would use it for a Deer Hunting system, so a deer will run away from a random player in its dynamic area, like it is scared and doesn't know where to go. And I suggested the rest of the functions because I thought they would be more useful than that function I need.
Few examples:
- CountPlayersInDynamicArea can be used in a Gang Base War, so you will know how many players are in that war.
* CountPlayersInAnyDynamicArea I don't see any use, but I don't see any use for IsAnyPlayerInAnyDynamicArea too, but it was still added, I think CountPlayersInAnyDynamicArea could be more useful than IsAnyPlayerInAnyDynamicArea.
- GetPlayersInDynamicArea could be used to get every player from that Gang Base War area, so you could list them.
* I don't see any use for GetPlayerDynamicAreas too, but maybe someone will find.
Every function can be useful for at least 1 server owner, if it is, then it's a "win".
----
I don't know if it's possible GetRandomPosInDynamicArea in a polygon.
EDIT:
Quote:
Originally Posted by BigETI
How should IsPlayerInDynamicArea crash the server?
|
just use
pawn Код:
IsPlayerInDynamicArea( playerid, 1 );
or
pawn Код:
IsPlayerInDynamicArea( playerid, 2 );
or
pawn Код:
IsPlayerInDynamicArea( playerid, -1 );
or etc., if that areaid is not created. I had an issue with it few days ago, until I saw that areaid which I used wasn't valid.