function SubirNivel(playerid) { if(Info[playerid][pLevel] == 1) { if(Info[playerid][pExp] > 8){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 2.");} } else if(Info[playerid][pLevel] == 2) { if(Info[playerid][pExp] > 12){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 3.");} } else if(Info[playerid][pLevel] == 3) { if(Info[playerid][pExp] > 16){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 4.");} } else if(Info[playerid][pLevel] == 4) { if(Info[playerid][pExp] > 20){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 5.");} } else if(Info[playerid][pLevel] == 5) { if(Info[playerid][pExp] > 24){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 6.");} } else if(Info[playerid][pLevel] == 6) { if(Info[playerid][pExp] > 28){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 7.");} } else if(Info[playerid][pLevel] == 7) { if(Info[playerid][pExp] > 32){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 8.");} } else if(Info[playerid][pLevel] == 8) { if(Info[playerid][pExp] > 36){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 9.");} } else if(Info[playerid][pLevel] == 9) { if(Info[playerid][pExp] > 40){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 10.");} } else if(Info[playerid][pLevel] == 10) { if(Info[playerid][pExp] > 44){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 11.");} } else if(Info[playerid][pLevel] == 11) { if(Info[playerid][pExp] > 48){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 12.");} } else if(Info[playerid][pLevel] == 12) { if(Info[playerid][pExp] > 52){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 13.");} } else if(Info[playerid][pLevel] == 13) { if(Info[playerid][pExp] > 56){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 14.");} } else if(Info[playerid][pLevel] == 14) { if(Info[playerid][pExp] > 60){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 15.");} } else if(Info[playerid][pLevel] == 15) { if(Info[playerid][pExp] > 64){SendClientMessage(playerid, COLOR_GREY, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel 16.");} } }
SubirNivel(playerid) { new nivel = Info[playerid][pLevel]; static exp[] = {8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64}; static string[64]; static temp[4]; string[0] = '\0'; if(Info[playerid][pExp] > exp[nivel]) { strcat(string, "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel "); valstr(temp, nivel+1); strcat(string, temp); strcat(string, "."); SendClientMessage(playerid, -1, string); } }
function SubirNivel(playerid)
{
if(Info[playerid][pLevel] >= 1 && Info[playerid][pLevel] <= 15)
{
if(Info[playerid][pExp] > ((4 * Info[playerid][pLevel]) + (4)))
{
new string[144];
format(string, sizeof(string), "[AVISO]:{FFFFFF} Usa /subirnivel para ser nivel %d.", (Info[playerid][pLevel] + 1));
SendClientMessage(playerid, COLOR_GREY, string);
}
}
return 1;
}
pawn Код:
|