Jump to content

Recommended Posts

Posted

Salutare draga comunitate! Am si eu o problema la comanda [/bonus] si aceea este ca atunci cand dau /bonus merge sa o folosesc iar si iar, chiar daca am pus o verificare pe level 1. Am incercat si cu else poate fac ceva, dar nimic.

Comanda: https://pastebin.com/uMHRhRFL

Ma poate ajuta cineva? Cred ca este o problema banala pentru cei care sunt avansati in acest domeniu.

Posted
Acum 2 ore, AnDrEyUpS a spus:

Salutare draga comunitate! Am si eu o problema la comanda [/bonus] si aceea este ca atunci cand dau /bonus merge sa o folosesc iar si iar, chiar daca am pus o verificare pe level 1. Am incercat si cu else poate fac ceva, dar nimic.

Comanda: https://pastebin.com/uMHRhRFL

Ma poate ajuta cineva? Cred ca este o problema banala pentru cei care sunt avansati in acest domeniu.

Citat

CMD:bonus(playerid, params[])
{
    if(pInfo[playerid][pScore] != 1) return SCM(playerid, COLOR_INFO, "Ai primit deja bonusul de bun venit.");//dor cei cu lvl 1 pot folosi comanda
    if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1790.9091, -1882.7960, 13.5977)) return SCM(playerid, COLOR_INFO, "Nu esti la locul potrivit.");
    GiveMoney(playerid, 4800000);
     pInfo[playerid][pScore] += 2, SetPlayerScore(playerid, pInfo[playerid][pScore]);
     SCM(playerid, COLOR_INFO, "Ai primit 4.800.000$ si level 3.");
    return 1;
}

 

YouTube : Click

Discord : CosminAK47#8524

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.