10.05.2014, 09:27
Код:
forward CaptureTimerEx(point); public CaptureTimerEx(point) { new string[128]; new fam; if(Points[point][TakeOverTimerStarted]) { fam = Points[point][ClaimerTeam]; if(Points[point][TakeOverTimer] > 0) { Points[point][TakeOverTimer]--; //format(string, sizeof(string), "%s has successfully attempted to take over of %s for %s, it will be theirs in %d minutes!", //Points[point][PlayerNameCapping], Points[point][Name], FamilyInfo[fam][FamilyName], Points[point][TakeOverTimer]); //UpdateDynamic3DTextLabelText(Points[point][CaptureProccess], COLOR_YELLOW, string); } else { Points[point][ClaimerTeam] = INVALID_PLAYER_ID; Points[point][TakeOverTimer] = 0; Points[point][TakeOverTimerStarted] = 0; Points[point][Announced] = 0; Points[point][Vulnerable] = NEW_VULNERABLE; //DestroyDynamic3DTextLabel(Points[point][CaptureProccess]); Points[point][CaptureProccessEx] = 0; strmid(Points[point][Owner], FamilyInfo[fam][FamilyName], 0, 32, 32); strmid(Points[point][CapperName], Points[point][PlayerNameCapping], 0, 32, 32); format(string, sizeof(string), "%s has taken control the %s for %s.", Points[point][CapperName], Points[point][Name], Points[point][Owner]); SendClientMessageToAllEx(COLOR_YELLOW, string); UpdatePoints(); KillTimer(Points[point][CaptureTimerEx2]); Points[point][CaptureTimerEx2] = -1; } } }
here is the token code:
Код:
PlayerInfo[playerid][pTokens]