Ayuda a insertar opcion en votación
#1
Buenas, necesito ayuda para insertarle a la votación de mapas la opción de "Jugar el mismo mapa" y que proceda a la siguiente votación si todos votan por esa opción.. del plugins Modo Pug XT aquí les dejo para que me ayuden por favor muchas gracias

Código:
public PUG_LoadMaps(const szFileName[])
{
    new iFile = fopen(szFileName,"rb");

    new szText[256],szDesc[48],iNum[10];

    while((PUG_VoteMapCount < PUG_MAX_MAPS) && !feof(iFile) && fgets(iFile,szText,charsmax(szText)))
    {
        if(szText[0]==';') continue;

        szText[strlen(szText)] = '^0';

        strbreak(szText,PUG_VoteMapNames[PUG_VoteMapCount],charsmax(PUG_VoteMapNames),szDesc,charsmax(szDesc));

        if(!is_map_valid(PUG_VoteMapNames[PUG_VoteMapCount])) continue;

        new szMapName[32];
        get_mapname(szMapName,charsmax(szMapName));

        if(equali(szMapName,PUG_VoteMapNames[PUG_VoteMapCount])) continue;

        if(szDesc[0] == '^0') strtok(PUG_VoteMapNames[PUG_VoteMapCount],szDesc,charsmax(szDesc),"",0,'.',1);

        formatex(iNum,charsmax(iNum),"%i",PUG_VoteMapCount);
        menu_additem(PUG_VoteMapMenu,PUG_VoteMapNames[PUG_VoteMapCount],iNum);

        PUG_VoteMapCount++;
    }
    fclose(iFile);
}
Responder
#2
Existe el plugin de votacion llamado Galileo que tiene la opcion de poder alargar el mapa y lo puedes configurar en cuanto minutos quieres que el mapa se extienda

Por si te interesa te lo dejo aqui:

https://forums.alliedmods.net/showthread.php?t=77391
Responder
#3
Ese plugins es muy complejo no lo entiendo muy bien.. tampoco es que soy experto en pawn a penas estoy comenzando se lo básico pero no mucho.. Necesito algo mas sencillo pero que haga la mismo función que necesito. de igual manera gracias por responder
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)