07.04.2013, 13:43
Pickups are always global, you cant create a pickup for one player only therefore its useless to do
With that knowledge you can remove some pieces of your code
Also you should look in your timer first through all objects and than through the player
Otherwise if as example player is in range of the pickup => pickup gets created
Player two not => pickup gets destroyed again
=> You never see the pickup
The best idea is that you start from the beginning and check out an already existing streamer how they work
pawn Код:
new GUPlayerPickup[MAX_PLAYERS_EX][MAX_PICKUPS_EX][GUPick_PlayerInfo];
Also you should look in your timer first through all objects and than through the player
Otherwise if as example player is in range of the pickup => pickup gets created
Player two not => pickup gets destroyed again
=> You never see the pickup
The best idea is that you start from the beginning and check out an already existing streamer how they work