Jump to content

Recommended Posts

Posted

Salut , recent mi-am luat un gm de pe net . Si playeri pot folosi comanda /nogetgift

Adica sa opreasca getgift-ul si sa il porneasca

Comanda o aveti aici :

Quote

CMD:nogetgift(playerid, params[])
{
    if(assetVariables[1][aAssetValue] == 0)
    {
        assetVariables[1][aAssetValue] = 1;
        format(szMessage, 256, "%s has turned ON the gift. (/getgift)", playerVariables[playerid][pNormalName]);
        submitToHelpersAndAdmins(szMessage,COLOR_BLUE);
    }
    else
    {
        assetVariables[1][aAssetValue] = 0;
        format(szMessage, 256, "%s has turned OFF the gift. (/getgift)",playerVariables[playerid][pNormalName]);
        submitToHelpersAndAdmins(szMessage,COLOR_BLUE);
    }
}

De la ce ar fi ?

Posted (edited)

Pentru ca,comanda nu are nici-o restrictie la grad.

Acum 33 minute, david1995 a spus:

Salut , recent mi-am luat un gm de pe net . Si playeri pot folosi comanda /nogetgift

Adica sa opreasca getgift-ul si sa il porneasca

Comanda o aveti aici :

De la ce ar fi ?

CMD:nogetgift(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 1)
	if(assetVariables[1][aAssetValue] == 0)
    {
        assetVariables[1][aAssetValue] = 1;
        format(szMessage, 256, "%s has turned ON the gift. (/getgift)", playerVariables[playerid][pNormalName]);
        submitToHelpersAndAdmins(szMessage,COLOR_BLUE);
    }
    else
    {
        assetVariables[1][aAssetValue] = 0;
        format(szMessage, 256, "%s has turned OFF the gift. (/getgift)",playerVariables[playerid][pNormalName]);
        submitToHelpersAndAdmins(szMessage,COLOR_BLUE);
    }
}


La ''    if(playerVariables[playerid][pAdminLevel] >= 1)  '' in loc de 1 pui ce level de admin sa poata accesa comanda.

Edited by keNN.
  • Upvote 1
Posted
On 3/20/2016 at 09:48, keNN. said:

Pentru ca,comanda nu are nici-o restrictie la grad.


CMD:nogetgift(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 1)
	if(assetVariables[1][aAssetValue] == 0)
    {
        assetVariables[1][aAssetValue] = 1;
        format(szMessage, 256, "%s has turned ON the gift. (/getgift)", playerVariables[playerid][pNormalName]);
        submitToHelpersAndAdmins(szMessage,COLOR_BLUE);
    }
    else
    {
        assetVariables[1][aAssetValue] = 0;
        format(szMessage, 256, "%s has turned OFF the gift. (/getgift)",playerVariables[playerid][pNormalName]);
        submitToHelpersAndAdmins(szMessage,COLOR_BLUE);
    }
}


La ''    if(playerVariables[playerid][pAdminLevel] >= 1)  '' in loc de 1 pui ce level de admin sa poata accesa comanda.

Merci . 

Posted
Acum 23 ore, david1995 a spus:

Merci . 

Puteai sa dai +1 daca te-am ajutat...

  • Upvote 1
Posted (edited)
3 hours ago, keNN. said:

Puteai sa dai +1 daca te-am ajutat...

Atitudine tipic  romaneasca, crezi ca faceai ceva daca iti dadea +1? Poftim iti dau eu (felicitari acum ai rep 1). Daca ar fi sa primim +1 de fiecare data cand chiar am ajutat foarte putini de pe forum ar avea reputatie, multe se dau aiurea. Asta e, cateodata primesti alteori nu.

Edited by Mister
  • Upvote 3

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

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.