01.06.2012, 15:51
O titulo jб diz tudo '-'
cidigo :
cidigo :
pawn Код:
public ZoneCheckpointChecker(playerid)// Checador Principal dos Checkpoints ele Faz Contagem de 15 pra 16 segundos dominando a GZ vc pode alterar Fonte da Letra + cores e so prestar atenзгo
{
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i))continue;
if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 39 &&
gzcolor[CPS_GetPlayerCheckpoint(i)-1] != GetPlayerColor(i))
{
if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 15)//Contagem Ate 15 tem outro Abaixo
{
if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 5)
{
new var1 = 0;
while(++var1 < 200)
{
if(mmgang[var1] == CPS_GetPlayerCheckpoint(i) - 1)
{
GameTextForPlayer(var1, " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~y~Uma Area de ~g~Seu Time ~y~Esta Sendo ~r~Dominada~y~!", 4000, 4);
}
}
}
cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
new tmp[10];
format(tmp, sizeof tmp, "~b~%2d/15", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
GameTextForPlayer(i, tmp, 1001, 6);
GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
}
else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 15)//Contagem Ate 15 Outro Acima
{
new string[256];
new pname[MAX_PLAYER_NAME];
GetPlayerName(i, pname, 24);
format(string, 256,"|GANGZONE| - %s (id:%d) Dominou Um Territуrio Com a Gang: %s", pname, i, nomegz[mmgang[i]][i]);// pname busca o nome do jogador - i busca o id - nomegz busca o nome da gang cuidado pra n mudar a ordem das gangs...
SendClientMessageToAll(0xFFFF00AA, string);// Enviar Mensagem pra todos - Cor em Numeros - String Define o tamanho do nome e Id do Player
format(string, 256,"~n~~r~~h~ Area Dominada!");//Tudo q esta entre " " pode ser modificado da forma q quiser
GameTextForAll(string,2500, 1);// Aki Configura o texto acima GameText pra todos verem - string - 2500 Segundos q a mensagem fica na tela - 1 Numero da Fonte do (0 ao 6)
gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
GivePlayerMoney(i, 1500);//pegar Grana do Jogador R$1500
GangZona[playerid]++;
}
}
}
}