Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

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


Question

Posted

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;
}

4 answers to this question

Recommended Posts

  • 0
Posted (edited)
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.
  • 0
Posted (edited)

	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

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.