Jump to content

Tutorial comanda /bonus,/activatebonus!


JumpyWizard

Recommended Posts

  • 2 months later...

CMD:bonus(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
if(PlayerToPoint(3.0, playerid, 1088.0237,-1802.3396,13.6024))

     {
         if(BonusActiv > 0)
         {
            
                SendClientMessage(playerid,COLOR_LIGHTGREEN,"O zi buna in continuare alaturi de {7E82CA}Five{EC7365}Game !");
    
            else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
        }
        else return SendClientMessage(playerid, COLOR_LIGHTRED, "Comanda /bonus nu este activata /report! !");

    }
    else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca nu esti langa cp la spawn civil !");

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

sper ca de aici in colo sa va descurcati, stiu ca sunteti incepatori dar si eu am invatat de la alti si ii mai arat si la alti care invata limbajul pawno +1 daca va-m fost de folos!

  • Upvote 2

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

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
Reply to this topic...

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