22.05.2014, 03:16
(
Последний раз редактировалось Trynda; 22.05.2014 в 03:19.
Причина: Wrong codes lol
)
Hello!!!
How do i give tokens to ALL FAMILY MERMBERS who won the capture?, +1 tokens,
for example your family 1 won the capture and all of members of family 1 will get +1 tokens,
Variables
Thanks in advance!!
How do i give tokens to ALL FAMILY MERMBERS who won the capture?, +1 tokens,
for example your family 1 won the capture and all of members of family 1 will get +1 tokens,
Variables
Код:
PlayerInfo[playerid][pTokens]
Код:
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; } } }