Jump to content

Alexica721

Membru
  • Posts

    258
  • Joined

  • Last visited

    Never

Posts posted by Alexica721

  1. Buna Ziua, :D

    Azi va voi arata cum sa va faceti un sistem de minigun.

    Il puteti adauga in gm sau in alte filtescript-uri

    Sa incepem:

    Pasul 1:

    Puneti Asta la inceputul fs-ului/gm-ului

    Cod:

    #include <zcmd>
    Explicatie:Vom folosi procesorul de comenzi ZCMD creeat de Zeex Cod:
    new inDM[MAX_PLAYERS];
    Explicatie:Aceasta Variabila ne va ajuta sa vedem daca jucatorul este in dm sau nu. Pasul 2: Apasati ctrl+f si scrieti public OnPlayerConnectsi scrieti sub callback(OnPlayerConnect) asta: Cod:
         inDM[playerid] = 0; 
    Explicatie:Cu aceasta comanda vom reseta variabila.(Adica jucatorul nu va fi in dm cand se spawneaza) Pasul 3: Acum adaugati comenzile acestea langa celalalte Comenzi: Cod:
    CMD:minigun(playerid, params[])
    {
            
        if(inDM[playerid] == 1) return SendClientMessage(playerid, -1, "Nu poti folosi comenzi in dm.Foloseste /exitdm pentru a iesi.");
        if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid,38 , 9999);
        SetPlayerFacingAngle(playerid, 0.0);
        SetPlayerPos(playerid,Float:x,Float:y,Float:z)
        inDM[playerid] = 1;
       	SetPlayerInterior(playerid, 0);
        return 1;
    }
    Explicatie:Cu aceasta comanda ne putem teleporta in dm. IMPORTANT:Inlocuiti Float:x,Float:y si Float:Z cu coordonatele Mapei de Minigun. Code:
    CMD:exitdm(playerid, params[])
    {
        if(inDM[playerid] == 0) return SendClientMessage(playerid, -1, "Nici nu erai in dm.");
    	ResetPlayerWeapons(playerid);
    	inDM[playerid] = 0; // player is in DM
    	SetPlayerPos(playerid,Float:x,Float:y,Float:z)
    	return 1;
    }
    Explicatie:Prin Aceasta comanda iesim din DM. IMPORTANT:Inlocuiti Float:x,Float:y si Float:Z cu coordonatele unde ati vrea sa fie teleportat jucatorul cand iese din DM, Si in final : Pasul 4: Apasati ctrl+f si scrieti public OnPlayerSpawn scrieti sub callback(OnPlayerSpawn) asta:
       if(inDM[playerid] == 1)
        {
        GivePlayerWeapon(playerid,38 , 9999);
        SetPlayerFacingAngle(playerid, 0.0);
        SetPlayerPos(playerid,Float:x,Float:y,Float:z)
        inDM[playerid] = 1; // player is in DM
       	SetPlayerInterior(playerid, 0);
    
         return 1;
        }

    Explicatie:Asta il va spawna pe player in DM daca moare si nu a scris /exitdm

    IMPORTANT:Inlocuiti Float:x,Float:y si Float:Z cu coordonatele Mapei de Minigun.

    Daca am scris ceva gresit/nu am explicat ceva/am multe greseli gramaticale sa-mi spuneti.

  2. Buna Ziua,

     else
                {
                    format(string, sizeof(string), "   %d nu este online.", giveplayerid);
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
            }
            return 1;
        }
     return 0;
    }

    EDIT:Scuzati ca am schimbat incercati inca o data.

  3. Buna Ziua,

    Shower,el ver ca atunci cand un player sa deconecteaza sa ii salveze pozitia apoi cand intra iar sa-i seteze pozitia salvata.

    By The Way...

    Miam incercat neuronii cu asta:

    #define FILTERSCRIPT
    
    #include <a_samp>
    #include <Dini>
    #include <dudb>
    
    new Float:positionx;
    new Float:positiony;
    new Float:positionz;
    
    
    #if defined FILTERSCRIPT
    
    public OnFilterScriptInit()
    {
            print("\n--------------------------------------");
            print(" De la Alexica721 pt voi                   ");
            print("--------------------------------------\n");
            return 1;
    }
    
    public OnPlayerConnect(playerid)
    {
            LoadStats(playerid);
            return 1;
    }
    
    public OnPlayerDisconnect(playerid, reason)
    {
            new Float:x;
            new Float:y;
            new Float:z;
    
            GetPlayerPos(playerid,x,y,z);
            positionx = x;
            positiony = y;
            positionz = z;
            if (!dini_Exists(Pos(playerid)))
            {
                    dini_Create(Pos(playerid));
            }
    
            SaveStats(playerid);
            return 1;
    }
    
    public OnPlayerSpawn(playerid)
    {
            if (!dini_Exists(Pos(playerid))) {
            SetPlayerPos(playerid, 1676.8462, 1447.7908, 10.7833);
            }
            else
            {
            SetPlayerPos(playerid, positionx,positiony,positionz);
            }
            return 1;
    }
    
    Player(playerid)
    {
     new player[MAX_PLAYER_NAME];
     GetPlayerName(playerid, player, sizeof(player));
     return player;
    }
    
    Pos(playerid)
    {
      new a[256]; format(a, sizeof(a), "%s.ini",udb_encode(Player(playerid)));
      return a;
    }
    
    SaveStats(playerid)
    {
      dini_IntSet(Pos(playerid), "PositionX", floatround(positionx));
      dini_IntSet(Pos(playerid), "PositionY", floatround(positiony));
      dini_IntSet(Pos(playerid), "PositionZ", floatround(positionz));
    }
    
    LoadStats(playerid)
    {
      positionx = dini_Int(Pos(playerid), "PositionX");
      positiony = dini_Int(Pos(playerid), "PositionY");
      positionz = dini_Int(Pos(playerid), "PositionZ");
    }
    
    public OnFilterScriptExit()
    {
            return 1;
    }
    
    #else
    
    main()
    {
            print("\n----------------------------------");
            print(" Nimic de spus");
            print("----------------------------------\n");
    }
    
    #endif

  4. Buna Ziua,

    incercati asta:

    
    	if (AVehicleData[vehicleid][VariabilaDumneavostra] > 0)
    	{
       new dmvdialog[464] = "Nu detii permis \n");
    strcat(dmvdialog, "Asadar nu poti conduce.\n");
    strcat(dmvdialog, "Dute la checkpoint-ul rosu pentru a-l da.\n");
    
    ShowPlayerDialog(playerid, 127, DIALOG_STYLE_MSGBOX, "DMV", szDialog, "OK", "");
    
    	}
    
    Variabila
    VariabilaDumneavoastra

    o inlocuiti cu variabila dmv-ului.

  5. Buna Ziua,

    Deci ca sa inteleg ,vreti ca atunci cand intrati intr-un pickup sa va arate dialogul?

    Daca da:

    La Inceput

    new banklabel;
    La OngamemodeInit
    banklabel= CreatePickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0);
    la OnPlayerPickupPickup
        if(pickupid == banklabel)
    // Setup local variables
    	new file[100], Name[24];
    
    	// Send the command to all admins so they can see it
    	SendAdminText(playerid, "/bank", params);
    
        // Get the playername
    	format(Name, sizeof(Name), APlayerData[playerid][PlayerName]);
    	// Construct the complete filename for this player's bank-account
    	format(file, sizeof(file), BankFile, Name);
    
    	// Check if the player has logged in
    	if (APlayerData[playerid][LoggedIn] == true)
    	{
    		// Check if the player doesn't have a bank account
    		if (!fexist(file))
    		{
    			// Ask for a password to setup his bank account
    			ShowPlayerDialog(playerid, DialogBankPasswordRegister, DIALOG_STYLE_INPUT, "Enter password", "Please enter a password to register your bank account:", TXT_DialogButtonSelect, TXT_DialogButtonCancel);
    		}
    		else // The player has a bank account
    		{
    			// If the player hasn't logged in to his bank account yet
    			if (APlayerData[playerid][BankLoggedIn] == false)
    			{
    				// Ask for the password to login to his bank account
    				ShowPlayerDialog(playerid, DialogBankPasswordLogin, DIALOG_STYLE_INPUT, "Enter password", "Please enter your password to login to your bank account:", TXT_DialogButtonSelect, TXT_DialogButtonCancel);
    			}
    			else // The player has logged in to his bank account already
    			{
    			    // Show the main bank menu dialog
    				ShowBankMenu(playerid);
    			}
    		}
    	}
    	else
    	    return 0;
    
    	// Let the server know that this was a valid command
    	return 1;
    }
       

    Surse:

    http://wiki.sa-mp.com/wiki/

  6. Buna Ziua, :D

    stock Float:GetPointDistanceToPointExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
    {
        new Float:x, Float:y, Float:z;
        x = x1-x2;
        y = y1-y2;
        z = z1-z2;
        return floatsqroot(x*x+y*y+z*z);
    }

  7. Buna Ziua, :D

    stock ChangeVehPlate( vehicleid )
    {
        new string[8], string2[4];
        
        if( vehicleid < 10 ) format(string2,sizeof(string2),"00%i", vehicleid );
        else if( vehicleid < 100 ) format(string2,sizeof(string2),"0%i", vehicleid );
        else format(string2,sizeof(string2),"%i", vehicleid );
        
        format(string,sizeof(string),"LV-%s", string2 );
        
        SetVehicleNumberPlate( vehicleid, string );
        
        return 1;
    }

    este netestat.

    sper ca sti cum sa-l folosesti.

  8. Buna Ziua, :D

    Incercati asta:

    
    strtok(const string[], &index)
    {
        new length = strlen(string);
        while ((index < length) && (string[index] <= ' '))
        {
            index++;
        }
    
        new offset = index;
        new result[20];
        while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
        {
            result[index - offset] = string[index];
            index++;
        }
        result[index - offset] = EOS;
        return result;
    }
    

  9. De ce cand vreau sa editez gm-ul imi da erorile astea

    D:\de toate\Romania Fantasy Stunt\pawno\include\streamer.inc(156) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"

    D:\de toate\Romania Fantasy Stunt\pawno\include\streamer.inc(237) : error 017: undefined symbol "MAPICON_LOCAL"

    D:\de toate\Romania Fantasy Stunt\pawno\include\streamer.inc(382) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")

    D:\de toate\Romania Fantasy Stunt\pawno\include\streamer.inc(404) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")

    D:\de toate\Romania Fantasy Stunt\pawno\include\streamer.inc(406) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1070) : error 017: undefined symbol "SetPlayerAttachedObject"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1071) : error 017: undefined symbol "SetPlayerAttachedObject"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1072) : error 017: undefined symbol "SetPlayerAttachedObject"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1116) : error 017: undefined symbol "PlayAudioStreamForPlayer"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1117) : error 017: undefined symbol "RemoveBuildingForPlayer"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1127) : error 017: undefined symbol "SetPVarInt"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1151) : error 017: undefined symbol "CreatePlayerTextDraw"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1151) : warning 213: tag mismatch

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1152) : error 017: undefined symbol "PlayerTextDrawBackgroundColor"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1153) : error 017: undefined symbol "PlayerTextDrawFont"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1154) : error 017: undefined symbol "PlayerTextDrawLetterSize"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1155) : error 017: undefined symbol "PlayerTextDrawColor"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1156) : error 017: undefined symbol "PlayerTextDrawSetOutline"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1157) : error 017: undefined symbol "PlayerTextDrawSetProportional"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1199) : error 017: undefined symbol "DeletePVar"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1199) : error 017: undefined symbol "DeletePVar"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1200) : error 017: undefined symbol "DeletePVar"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1200) : error 017: undefined symbol "DeletePVar"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1201) : error 017: undefined symbol "DeletePVar"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1201) : error 017: undefined symbol "DeletePVar"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1202) : error 017: undefined symbol "DeletePVar"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1202) : error 017: undefined symbol "DeletePVar"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1203) : error 017: undefined symbol "DeletePVar"

    D:\de toate\Romania Real Stunt - by GameR [www.rrs-ro.net]\gamemodes\rrs.pwn(1203) : error 017: undefined symbol "DeletePVar"

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    26 Errors.

    iati cele mai noi include din samp

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