Jump to content

Uzzi25.

Membru
  • Posts

    20
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Uzzi25.

  1. 4 hours ago, nuamasacv said:

    Daca am pe host, ce ar trebui sa pun la new new SERVER_HOSTSTATUS =???? Ca vad ca, cand ma conectez imi apare joining the game si dupa closed the connection, si am pus baza de date

     

    4 hours ago, nuamasacv said:

    Daca am pe host, ce ar trebui sa pun la new new SERVER_HOSTSTATUS =???? Ca vad ca, cand ma conectez imi apare joining the game si dupa closed the connection, si am pus baza de date

     

  2. Uite un exemplu

    Spoiler

    CMD:bonus(playerid, params [])
    {
        switch(random(5))
        {
            case 0:
            {
                pInfo[playerid][aVar][34] = 411;
                for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip Infernus, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");
            }
            case 1:
            {
                pInfo[playerid][aVar][34] = 541;
                for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip Bullet, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");
            }
            case 2:
            {
                pInfo[playerid][aVar][34] = 560;
                for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip Sultan, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");
            }
            case 3:
            {
                pInfo[playerid][aVar][34] = 559;
                for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip Jester, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");
            }
            case 4:
            {
                pInfo[playerid][aVar][34] = 415;
                for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip Cheetah, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");
            }
        }
        return 1;
    }

     

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