Jump to content

Recommended Posts

Posted (edited)

Salut am o problema la comanda bonus

La bonus vreau sa o pun ca playerii sa o poata folosii dupa o ora jucata.

Comanda 

Quote

CMD:bonus(playerid,params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
     {
        if (PlayerToPoint(3, playerid,1745.1322,-1860.8306,13.5783))
        {
              if(PlayerInfo[playerid][pLevel] <= 2)
             {
                 GivePlayerCash(playerid, 30000000);
                 PlayerInfo[playerid][pLevel] = 8;
                 Update(playerid, pLevelx);
                 Update(playerid, pCashx);
                 SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
                SendClientMessage(playerid, COLOR_BLUE,"Ai primit $30,000,000 si level 8 de bun venit!");
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED,"Nu poti folosi aceasta comanda daca ai level 3+ !Nu fi nesimtit !");
                return 1;
            }
        }
        else return SendClientMessage(playerid, COLOR_BLUE,"Nu sunteti la locul de /bonus pentru a va luat Cadoul de bun venit!");
    }
    return 1;
}

 

 

 

Edited by david1995

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.