Jump to content

Question

Posted

function Fish(playerid) {
    new x, string[180];
    if(!IsPlayerConnected(playerid)) return 1;
    if(PlayerInfo[playerid][pJob] == 11) {
        RemovePlayerAttachedObject(playerid, 0);
        x = 34000 + random(1000) + GetPlayerSkill(playerid)*500;
        if(PlayerInfo[playerid][pPremiumAccount] == 1) x += x/2;
        new rar = random(5000);
        if(rar >= 490 && rar < 495) {
            x += 34000 + random(700000);
            format(string, sizeof(string), "Ai prins un peste rar care valoreaza $%s!", FormatNumber(x));
            SCM(playerid, COLOR_YELLOW, string);
            SCM(playerid, -1, "Pentru a vinde pestele, trebuie sa mergi intr-un 24/7. (/gps)");            
            format(string, sizeof(string), "* %s a prins un peste rar ce valoreaza $%s.", GetName(playerid), FormatNumber(x));
            NearMessage(playerid, COLOR_YELLOW, string);                        
        }
        else if(rar >= 495) {
            format(string, sizeof(string), "Ai prins un peste foarte rar!", FormatNumber(x));
            SCM(playerid, COLOR_BLUE, string);
            SCM(playerid, -1, "Pentru a vinde pestele, trebuie sa mergi intr-un 24/7. (/gps)");                    
            format(string, sizeof(string), "* %s a prins un peste foarte rar care valoreaza %s.", GetName(playerid), FormatNumber(x));
            NearMessage(playerid, COLOR_YELLOW, string);    

        }
        else {
            format(string, sizeof(string), "Ai prins un peste normal care valoreaza $%s!", FormatNumber(x));
            SCM(playerid, COLOR_DARKPINK, string);    
            SCM(playerid, -1, "Pentru a vinde pestele, trebuie sa mergi intr-un 24/7. (/gps)");
            format(string, sizeof(string), "* %s a prins un peste normal ce valoreaza $%s.", GetName(playerid), FormatNumber(x));
            NearMessage(playerid, COLOR_YELLOW, string);                
        }
        
        HaveFish[playerid] = x;
        StartFish[playerid] = 0;
        TogglePlayerControllable(playerid, 1);
        Freezed[playerid] = 0;
    }
    return 1;
}

 

Am comanda asta as vrea ca la fish sa-mi dea ca pe b-hood daca se poate sa mi dea aceeasi bani ? ma poate ajuta cineva? gen sa fie ca pe b hood economia.

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.