31.10.2018, 09:37
Yes it is correct, but pInfo[playerid][ZombiesKilled] value is both the first checkpoint's and the after checkpoint.
If you wan't to skip that, reset the variable
because basically on the if statement you got here:
If you kill just one zombie after the first checkpoint, it will be true.
If you wan't to skip that, reset the variable
pawn Code:
zombieskilled = pInfo[playerid][ZombiesKilled];
pInfo[playerid][ZombiesKilled] = 0;
pawn Code:
if(pInfo[playerid][ZombiesKilled] > zombieskilled)