Jump to content

Problema getgift


david1995

Recommended Posts

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 ?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 . 

Link to comment
Share on other sites

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