Jump to content
  • 0

Comanada [/bonus], plz am facut-o dar am o problema


Alex.12

Question

Am o problema am facut comanda [/bonus] pe GM Burned dar ceva nu merge bine las comanda mai jos va rog ajutati-ma. daca puteti sa-mi da-ti comanda refacuta cu tot cu variabile va rog !!! <3 las aici comanda:

 

CMD:bonus(playerid, params[]) {
    if(!IsPlayerConnected(playerid) && IsPlayerLogged[playerid] == 0) return SCM(playerid, COLOR_RED, "Trebuie sa fii logat pentru a folosi aceasta comanda.");
    if(PlayerInfo[playerid][pLevel] != 1) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda daca nu ai level 1.");
    GivePlayerCash(playerid, 15000000);
    PlayerInfo[playerid][pLevel] = 3;
    PlayerInfo[playerid][pPremiumPoints] += 500;

    PlayerInfo[playerid][pGunLic] = 1;
    PlayerInfo[playerid][pGunLicT] = 5;
    PlayerInfo[playerid][pFlyLic] = 1;
    PlayerInfo[playerid][pFlyLicT] = 5;
    PlayerInfo[playerid][pBoatLic] = 1;
    PlayerInfo[playerid][pBoatLicT] = 5;
    PlayerInfo[playerid][pCarLic] = 1;
    PlayerInfo[playerid][pCarLicT] = 100;
    
    return 1;
}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
CMD:bonus(playerid, params[] 
{
  	if(gPlayerLogged < 1) return SCM(playerid, -1, "Nu esti conectat uai");
  	if(PlayerInfo[playerid][pLevel] < 2) 
  	{
     	PlayerInfo[pLevel] += 3;
     	new rand = 5000000 + random(20000000);
     	new string[128];
     	GivePlayerCash(playerid, rand);
     	PlayerInfo[playerid][pPremiumPoints] += 20;
     	PlayerInfo[playerid][pGunLic] = 1;
     	PlayerInfo[playerid][pGunLicT] = 10;
     	format(string, sizeof string, "Ai primit %s$, 20 premium points, si licenta de gun pentru 20 ore", rand);
    	ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Bonus:" string, "Ok", "");
  	}
    return 1;
}   

 

Edited by DrooM.
Link to comment
Share on other sites

  • 0

	CMD:bonus(playerid, params[])
{
    if(IsPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not logged in!");
    if(PlayerInfo[playerid][pLevel] > 1) return SendClientMessage(playerid, COLOR_NOB, "Aceasta comanda poate fi folosita doar de jucatorii cu nivel 1.");
    {
        PlayerInfo[playerid][pLevel] += 1;
        Update(playerid, pLevelx);
        SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]);
        UpdateProgress(playerid, 0);
	        PlayerInfo[playerid][pETTokens] += 10;
        Update(playerid, pETTokensx);
	        GivePlayerCash(playerid, 1000000);
	        PlayerInfo[playerid][pHiddens] += 1;
         Update(playerid, pHiddensx);
	         PlayerInfo[playerid][pFWorks] += 5;
         Update(playerid, pFWorksx);
    }    
    return 1;
}
	

Edited by Alpheus
Link to comment
Share on other sites

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.