17.06.2014, 16:39
I don't exactly know if my logic will work or not, but still you can try.
Firstly, Under OnPlayerUpdate ,get the playerid's range and then if opponent's id enters that range and drops the other player off. Add +1 to his score. For example:
You should use :
GetPlayerPos
IsPlayerInRangeOfPoint
for loop
variables and etc..
Firstly, Under OnPlayerUpdate ,get the playerid's range and then if opponent's id enters that range and drops the other player off. Add +1 to his score. For example:
pawn Код:
if(opponent's id enters that range && drops off the player)
{
pScore[opponent's id]+=1;
}
GetPlayerPos
IsPlayerInRangeOfPoint
for loop
variables and etc..