Individual count++ (personal) for each player
Hi guys,
i'm bulding a plugin when player is in game he can hade 3 "he grenade", so, when the player launche the first grenade, i increment a "count" variable like this : PHP Code:
All working fine, but when other player launch grenade he increment count too... i want to increment "count" only by one player, instead by "all" :nono: Is not a really a probleme, it's logic, but how to do thate ? i don't have any idea :cry: Thanks for help :wink: |
Re: Individual count++ (personal) for each player
int count[MAXPLAYERS+1];
count[client]++; dont forget to reset the variable somewhere like for(int i = 1; i <= MaxClients; i++) count[i] = 0; |
Re: Individual count++ (personal) for each player
Quote:
The variable it was reseted at Event_PlayerSpawn PHP Code:
|
All times are GMT -4. The time now is 12:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.