Quote:
Originally Posted by 5c0r-|3i0
PHP Code:
// New round started public Event_NewRound(id) { if (g_restarted) { // Strip from M79 if game have been restarted for (new i = 0; i < get_maxplayers(); i++) { g_hasM79[i] = false } g_restarted = false } }
Will this work ?? I tried several times in my plugins and seems it doesn't work at all  ...I really don't know the reason  ..Tell me how  .
NJ anyway ^^!..
|
It must be "i <
=" instead of "i <", get_maxplayers should be cached and it should be "i = 1" instead of "i = 0"
Basically, that code as it is, works for every player except the one with the last id.
If you prefer you can make it another way. Not significantly better or worst. Different.
Instead of:
PHP Code:
for (new i = 0; i < get_maxplayers(); i++)
{
g_hasM79[i] = false
}
PHP Code:
new clean[33]
g_hasM79 = clean
__________________