Jump to content

Comanda script (/bonus) zcmd


adiqua

Recommended Posts

Spoiler

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, 5000000);
                 PlayerInfo[playerid][pLevel] = 6;
                PlayerInfo[playerid][pPremiumPoints] = 70;
                PlayerInfo[playerid][pConnectTime] = 5;
                 Update(playerid, pLevelx);
                 Update(playerid, pCashx);
                Update(playerid, pPremiumPointsx);
                Update(playerid, pConnectTimex);
                 SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $5.000.000, level 6, 70 puncte premium si 5 ore de bun venit!");
            }
            else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
        }
    }
    return 1;
}

 

Si ca sa il activezi

Spoiler

CMD:activatebonus(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "You need to login first.");
    if(IsPlayerConnected(playerid))
     {
         if (PlayerInfo[playerid][pAdmin] >= 6)
        {
            if(BonusActiv == 0)
             {
                 BonusActiv = 1;
                 SendClientMessage(playerid, COLOR_WHITE, "Ai activat comanda /bonus!");
            }
            else
            {
                BonusActiv = 0;
                SendClientMessage(playerid, COLOR_WHITE, "Ai dezactivat comanda /bonus!");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
        }
    }
    return 1;
}

 

Link to comment
Share on other sites

Imi da eroare asta la comanda

 

C:\Users\admin\Desktop\Bugged RPG (Version 3.3.0)\gamemodes\noruls.pwn(26307) : error 017: undefined symbol "gPlayerLogged"
C:\Users\admin\Desktop\Bugged RPG (Version 3.3.0)\gamemodes\noruls.pwn(26307) : warning 215: expression has no effect
C:\Users\admin\Desktop\Bugged RPG (Version 3.3.0)\gamemodes\noruls.pwn(26307) : error 001: expected token: ";", but found "]"
C:\Users\admin\Desktop\Bugged RPG (Version 3.3.0)\gamemodes\noruls.pwn(26307) : error 029: invalid expression, assumed zero
C:\Users\admin\Desktop\Bugged RPG (Version 3.3.0)\gamemodes\noruls.pwn(26307) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Link to comment
Share on other sites

Salut incearca asta, daca nu merge pune errorile aici.Sper ca te-am ajutat, succes!

Spoiler

CMD:bonus(playerid,params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
{
      if(PlayerInfo[playerid][pLevel] <= 1)
      {
          GivePlayerCash(playerid, 50000000);
          PlayerInfo[playerid][pLevel] = 3;
          Update(playerid, pLevelx);
          Update(playerid, pCashx);
          SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
          SendClientMessage(playerid, COLOR_GREEN,"Ai Primit 50,000,000$ & Level 3");
}
else
{
   SendClientMessage(playerid, COLOR_RED,"Nu poti folosi aceasta comanda daca ai level 3+ !");
   return 1;
}

 

Link to comment
Share on other sites

  • 2 years later...

Mie mi-a mers tot cum ai spus mai sus:

-Aia care ii da eroarea lui trebuie niste include noi! Pm si iti dau eu !

Iar pe server cand se inregistreaza ii da automat bonus. Cum scot?

 

 

 

Link to comment
Share on other sites

11 minutes ago, Pavelb said:

Mie mi-a mers tot cum ai spus mai sus:

-Aia care ii da eroarea lui trebuie niste include noi! Pm si iti dau eu !

Iar pe server cand se inregistreaza ii da automat bonus. Cum scot?

 

 

 

Chiar nu se vede ca postarea are 2 ani de zile?

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • Mister locked this topic
Guest
This topic is now closed to further replies.
×
×
  • 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.