20.09.2015, 23:12
Tengo un problema con este comando, al usarlo supuestamente te tiene que dar X cantidad de dinero... si lo hace, pero al segundo te la retira... їquй puedo hacer?
COMANDO:
COMANDO:
Код:
} COMMAND:prestamo(playerid, params[]){ new data[100]; if(PrestamoActivo[playerid]==true) return SendClientMessage(playerid,-1,"Gerente_Richard dice: Ya has sacado un prestamo no podemos darte otro."); ProxDetector(20.0, playerid, PrestamoActivo, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); if(CantidadPrestamo[playerid]>=MAX_PRESTAMO) return SendClientMessage(playerid,-1,"Gerente_Richard dice: Lo sentimos, usted ya ha sacado muchos prestamos."); ProxDetector(20.0, playerid, CantidadPrestamo, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); PrestamoActivo[playerid]=true; KillTimer(MatarPrestamo[playerid]); MatarPrestamo[playerid]=SetTimerEx("Prestamista", TIEMPO_PRESTAMO, true, "d", playerid); GivePlayerMoney(playerid, (0+DINERO_PRESTAMO)); PrestamoActivo[playerid]++; format(data,sizeof(data),"Has sacado un prestamo de: %d con unos intereses de: %d. ", DINERO_PRESTAMO, VALOR_INTERESES_INICIAL); SendClientMessage(playerid,-1,data); return true; }