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

Recommended Posts

Posted (edited)

Salut. Puteti sa ma ajutati cu o comanda?

/bonus - vreau sa poata utiliza doar playerii de level 1 si sa le dea level up + 100.000$ !

 

Am nevoie urgent de aceasta comanda , va rog ajutati-ma.

 

Multumesc anticipat !

Edited by Kreative
.
Posted

Salut.

Adaugi in felul urmator:

if(PlayerInfo[playerid][pLevel] == 1)
{
   PlayerInfo[playerid][pMoney] = suma;
   PlayerInfo[playerid][pLevel] = 2;
}

Sper ca te-am ajutat.

P.S: Daca tu nu ai PlayerInfo modifici cu ce ai tu,valabil si pentru pMoney si pLevel.   

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

Posted

Nu imi merge , imi da 26 de erori am inlocuit si cum am eu , cam asa a iesit :

 

CMD:bonus(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] == 1)
{
   GivePlayerCash(playerid, 100000);
   PlayerInfo[playerid][pLevel] = 2;
   SendClientMessage(playerid, COLOR_ORANGE, "Ai primit Level UP + 100.000$ !");
}

 

Va rog ajutati-ma...

Posted
CMD:bonus(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] == 1)
{
   GivePlayerCash(playerid, 100000);
   PlayerInfo[playerid][pLevel] = 2;
   SendClientMessage(playerid, COLOR_ORANGE, "Ai primit Level UP + 100.000$ !");
}
return 1;
}

Ai uitat sa inchizi comanda ;) Vezi acum.

  • Upvote 1

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

Posted

Placerea a fost a mea :)

 

O seara buna :)

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

Posted

adauga in comanda
 

Quote

 

PlayerInfo[playerid][pWepLic] = 1

PlayerInfo[playerid][[pSailingLic] = 1

PlayerInfo[playerid][pWepLic] = 1

 

 

Modifica cu definitiile tale pentru licente.

  • Upvote 1
  • 2 years later...
Posted

Salut am facut exact la fel ... dar nu imi merge .. unde trebuie sa pun astea ? adica in ce linie ? 

CMD:bonus(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] == 1)
{
   GivePlayerCash(playerid, 100000);
   PlayerInfo[playerid][pLevel] = 2;
   SendClientMessage(playerid, COLOR_ORANGE, "Ai primit Level UP + 100.000$ !");
}
return 1;
}
  • 2 weeks later...
  • 2 weeks later...
Posted

stock GetName(playerid) {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    return name;
}


CMD:bonus(playerid, params[]){
    if(IsPlayerConnected(playerid))
    if(!IsPlayerInRangeOfPoint(playerid, 0.5,  x ,  y ,  z)) return SCM(playerid, 0x919191FF, "Erroare:Nu esti la locatia potrivita!");
    new string[128], rand = 10000 + random(300000);
    format(string ,sizeof(string), "Felicitari, %s! Ai castigat $%d.", GetName(playerid), rand);
    SendClientMessage(playerid, 0x4AAB1DFF, string);
    GivePlayerMoney(playerid, rand)    
    return 1;
}

  • 10 months later...
Posted
La 30.11.2015 la 18:01, MrTuNNe a spus:

CMD:bonus(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] == 1)
{
   GivePlayerCash(playerid, 100000);
   PlayerInfo[playerid][pLevel] = 2;
   SendClientMessage(playerid, COLOR_ORANGE, "Ai primit Level UP + 100.000$ !");
}
return 1;
}

Ai uitat sa inchizi comanda ;) Vezi 

CEVa nu e bine aici

SetPlayerScore , acesta nu v-a primi levelul acordat dupa comanda /bonus , v-a trebuii sa dea relog.

  • 5 months later...
Posted

CMD:bonus(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
     {
         if(BonusActiv > 0)
         {
             if(PlayerInfo[playerid][pLevel] <= 2)
             {
                 GivePlayerCash(playerid, 300000000);
                 PlayerInfo[playerid][pLevel] = 10;
                PlayerInfo[playerid][pPremiumPoints] = 400;
                 Update(playerid, pLevelx);
                 Update(playerid, pCashx);
                Update(playerid, pPremiumPointsx);
                 SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $300.000,000, level 10 si 400 puncte premium de bun venit!");
            }
            else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
        }
    }
    return 1;
}

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.