Jump to content

[pepsi]

Membru
  • Posts

    34
  • Joined

  • Last visited

    Never

Posts posted by [pepsi]

  1. Am asta in GM de mai jos si cum fac sa imi apara in cadran in Box ,Textdrawbox sa apara cand apas enter sa ma urc in masina  ?

    [table]

      new string[256];

    format(string, sizeof(string),"~g~Apasa ~r~2 ~g~pentru a repara masina si apasa ~r~click ~g~pentru ~r~NITRO!");

    TextDrawSetString(Textdrawtext1,string);

        TextDrawShowForPlayer(playerid,Textdrawtext1);

       

    new bstring[256];

    format(bstring, sizeof(bstring),"_______~g~Pentru ati tuna masina foloseste ~r~/tune ~g~sau ~r~/tc1-3.");

    TextDrawSetString(Textdrawtext2,bstring);

        TextDrawShowForPlayer(playerid,Textdrawtext2);

       

    new zbstring[256];

    format(zbstring, sizeof(zbstring),"____Apasa ~r~Click ~w~pentru a inchide mesajul!");

    TextDrawSetString(Textdrawtext3,zbstring);

        TextDrawShowForPlayer(playerid,Textdrawtext3);

    }

    return 1;

    [/table]

  2. asta e comanda /derby

    CMD:derby(playerid, params[])
    
       {
    
            if(DMZone[playerid])return SendClientMessage(playerid,COLOR_WHITE,"You can't exit this DM!Use {FF0000}/exitdm");
    
      		SetPlayerInterior(playerid, 15);
    
       		SetPlayerPos(playerid, x,y,z);
    
        	ResetPlayerWeapons(playerid);
        	
        	SetTimerEx("Nombre", 3000, 0, "d", playerid);
    
            TogglePlayerControllable(playerid, 0);
            
            IsPlayerInZone[ playerid ] = 1;
            
            ShowTele(playerid,"/derby");
    
         	return 1;

  3. deci asta e comanda de /nrg[table]

    COMMAND:nrg(playerid, params[])

      {

                new string[256];

            if(pNRG[playerid] > 0)

            {

                if(GetPlayerVehicleID(playerid) != pNRG[playerid])

                {

                  if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);

                  new Float: X, Float: Y, Float: Z, Float: Ang;

                  GetPlayerPos(playerid, X, Y, Z);

                  GetPlayerFacingAngle(playerid, Ang);

                    SetVehicleVirtualWorld(pNRG[playerid],GetPlayerVirtualWorld(playerid));

                  PutPlayerInVehicle(playerid, pNRG[playerid], 0);

                  SetVehiclePos(pNRG[playerid], X, Y, Z);

                  SetVehicleZAngle(pNRG[playerid], Ang);

                  SetVehicleHealth(pNRG[playerid],  1000.0);

                  LinkVehicleToInterior(pNRG[playerid], GetPlayerInterior(playerid));

                    TextDrawShowForPlayer(playerid,  MsgNrg);

                        SetTimerEx("Hide", 3500, false, "d", playerid ,string);

                }

                else

                {

                  SendClientMessage(playerid,0xCC0000AA, "{00C0FF}Ai deja un {F81414}NRG-500!");

                }

            }

            else

            {

                if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);

                new Float: X, Float: Y, Float: Z, Float: Ang;

                GetPlayerPos(playerid, X, Y, Z);

                GetPlayerFacingAngle(playerid, Ang);

                pNRG[playerid] = CreateVehicle(522, X, Y, Z+3, Ang, 75,3, 5000000);

                PutPlayerInVehicle(playerid, pNRG[playerid], 0);

                SetVehicleVirtualWorld(pNRG[playerid],GetPlayerVirtualWorld(playerid));

                LinkVehicleToInterior(pNRG[playerid], GetPlayerInterior(playerid));

                printf("Personal NRG Created For %s.", PlayerName2(playerid));

                    TextDrawShowForPlayer(playerid,  MsgNrg);

                    SetTimerEx("Hide", 3500, false, "d", playerid ,string);

                for(new i=0; i < MAX_PLAYERS; i++)

                {

                  if (IsPlayerConnected(i) && i != playerid)

                  {

                      SetVehicleParamsForPlayer(pNRG[playerid], i, 0, 1);

                      }

                  }

            }

                return 1;

      }

    [/table] ce ar trebuii sa ii fac sa imi aduca masina privata prin comanda /mycar ?

  4. Am codu asta intr-un fs

    format(string, sizeof(string), "{66FF00}Speed {FFAF00}%d {FF0000}km/h", GetPlayerSpeed(playerid));

    cum fac sa imi apara asa

    format(string, sizeof(string), "{66FF00}Car name {FFAF00} aici ce pun ", Si aici  ? );

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