24.07.2010, 21:53
(
Последний раз редактировалось Link_; 25.07.2010 в 12:50.
)
cara valeu msm mais tipo assim meu server e de dominar em checkpoints da tbm?
Como coloca?
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i))continue;
if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 100 &&
//sгo 11 checkpoints, entгo mude se for colocar mais...
gzcolor[CPS_GetPlayerCheckpoint(i)-1] != GetPlayerColor(i))
{
if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 15)
{
cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
new tmp[10];
format(tmp, sizeof tmp, "~w~%2d/15", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
GameTextForPlayer(i, tmp, 1001, 4);
GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
}
else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 15) //passou 30 segundos dentro do checkpoint
{
GameTextForPlayer(i, "~w~Conquistado +2 score", 4000, 1);
SetPlayerScore(i, GetPlayerScore(i) + 2);
GetPlayerName(i, playername, MAX_PLAYER_NAME);
gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
}
}
}
}