Jump to content
  • 0

Ajutor Scripting


Ionchy4KP

Question

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.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.