21.06.2018, 04:38
Quote:
Eu nгo entendi a lуgica do seu sistema, publique o cуdigo e faзa algumas explicaзхes, talvez eu posso ajudar, ou algum outro membro da board.
|
PHP код:
enum info
{
tNome[64],
Float:Spawn[8],
tCor
};
//
new Dominio[][info] =
{
{"Parque Uniгo", {0.0,-0.0,0.0}, COLOR_RED},
{"Jacarй", {0.0,-0.0,0.0}, COLOR_RED},
{"Vila Vintйm", {0.0,-0.0,0.0}, COLOR_BLUE},
{"Batan", {0.0,-0.0,0.0}, COLOR_BLUE},
{"Complexo Da Marй", {0.0,-0.0,0.0}, COLOR_YELLOW},
{"Para Paz", {0.0,-0.0,0.0}, COLOR_YELLOW},
{"Carobinha", {0.0, 0.0, 0.0}, COLOR_ORANGE}
};
//
//~ Sistema de dominar
new
StringGZ[128],
SaiuPos[MAX_PLAYERS],
SaiuPos2[MAX_PLAYERS],
Bar:BarraDominando[MAX_PLAYERS] = {INVALID_BAR_ID, ...},
DoisMinutos[MAX_PLAYERS],
bool:PlayerDominado[MAX_PLAYERS],
Text3D:Gangs[sizeof(Dominio)],
DominadaMomento[sizeof(Dominio)],
Dominando[sizeof(Dominio)]
;
PHP код:
for(new i; i < sizeof(Dominio); i ++)
{
CreatePickup(1314, 1, Dominio[i][Spawn][0], Dominio[i][Spawn][1], Dominio[i][Spawn][2], Dominio[i][Spawn][3], Dominio[i][Spawn][4], Dominio[i][Spawn][5], Dominio[i][Spawn][6], -1);
format(StringGZ, sizeof(StringGZ), "%s\nDominio: {E8E8E8}Nenhum", Dominio[i][tNome]);
Gangs[i] = Create3DTextLabel(StringGZ,Dominio[i][tCor], Dominio[i][Spawn][0], Dominio[i][Spawn][1], Dominio[i][Spawn][2], Dominio[i][Spawn][3], Dominio[i][Spawn][4], Dominio[i][Spawn][5], Dominio[i][Spawn][6],25.0,0);
}