Jump to content

JoeMirana

Membru
  • Posts

    32
  • Joined

  • Last visited

Posts posted by JoeMirana

  1.  

    atunci cand vreau compile game mode 1 error :

    game mode compile + error:

    F:\game\pawno\include\nex-ac.inc(7179) : warning 202: number of arguments does not match definition
    F:\game\pawno\include\nex-ac.inc(7192) : error 025: function heading differs from prototype
    
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    1 Error.
    
    

     

    nex-ac.inc line 7192 error line:

    dd.thumb.PNG.1a2afbab4d8a4d8c6cbbc0ab4a55ac56.PNG

    cum sa rezolve?

  2.  

    Vreau acest sistem numai pentru mafie
    cum se face asta?

    Vreau ca acest sistem sa funcționeze numai pentru mafie

    my gm: bigZone

    /*
    ================================================================================
    $$$$$$$$$$$$$$$$$$$$Creado Por Reedk [MeScript2212 SAMP FORUM]$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$=======
    $$$--- Borrar Creditos = Ban u Advertencia.--$$$$$$$$$$$========================
    $$$Exclusivo para PawnoScript y Samp Forum!--$$$$$$$$$$$$$$$$$==============================
    ================================================================================
    */
    #include <a_samp>
    new ActivarHS;
    
    
    public OnFilterScriptInit()
    {
        ActivarHS = 1;
    	print("\n-------------------------------------------");
    	print("      FS Head Shot cargado con exito!       |");
    	print("     $$$$$$$ =============== $$$$$$$$       |");
    	print("             Creado por Reedk               |");
    	print("---------------------------------------------\n");
    	return 1;
    }
    //-------------------------- Acttivar Headshots CMD ----------------------------//
    public OnPlayerCommandText(playerid, cmdtext[])
    {
     	if (strcmp("/activehead", cmdtext, true, 10) == 0)
        {
    		{
    		    ActivarHS = 1;
    	}
    }
    //------------------Desactivar HeadShot CMD ------------------------------------//
      	if (strcmp("/disablehead", cmdtext, true, 10) == 0)
        {
    		{
    		    ActivarHS = 0;
    
    		}   return 1;
    	}
    	return 0;
    }
    // public que al dar un tiro en la cabeza al jugador se le ponga la vida en 0.0 no importa si tiene chaleco , ya que el chaleco influye en el cuerpo ----//
    public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
    {
    	if(issuerid != INVALID_PLAYER_ID && weaponid == 31 && bodypart == 9)
    	{
    		if(ActivarHS == 1)
    		{
    			SetPlayerHealth(playerid, 0.0);
    			GameTextForPlayer(playerid, "You headshoted by another player", 2000, 3);
    			GameTextForPlayer(issuerid, "You get a get shot", 2000, 3);
    		}
    	}
    }
    //Suerte! By Reedk | No robar creditos! |

     

  3. in my headshot script:

    public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
    {
        if(issuerid != INVALID_PLAYER_ID && weaponid == 27 && bodypart == 9)
    
        {
            if(ActivarHS == 1)
            {
                SetPlayerHealth(playerid, 0.0);
             }
        }
    }
    //Suerte! By Reedk | No robar creditos! |

    cum se adauga

    pentru mesaj ucigas =  HeadShot Done     

    daca jucatorul este mort  mesaj  =   You HeadShoted

  4. Am nevoie de o comanda /autosleep

    cand jucatorii se conecteaza la server automatic go sleep

    porunca mea /sleep:

    CMD:sleep(playerid, params[])
    {
    	if(gPlayerLogged[playerid] == 0) return SCM(playerid, COLOR_LIGHTRED, "You need to login first.");
    	if(InHouse[playerid] > -1)
        {
            if(PlayerInfo[playerid][pWantedLevel] == 0)
    		{
                if(PlayerInfo[playerid][pSleeping] == 0)
    			{
       				PlayerInfo[playerid][pSleeping] = 1;
    				TogglePlayerControllable(playerid,0);
         			//SCM(playerid, COLOR_WHITE, "Acum poti ramane AFK fara a primi kick. Foloseste /sleep din nou cand vrei sa revi in joc.");
    				SCM(playerid, COLOR_WHITE, "Minimizarea jocului (alt-tab) poate provoca unele buguri. Este recomandat sa apesi ESC inainte de a minimiza jocul.");
                    LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
    				SetPlayerColor(playerid,COLOR_GRAD2);
    				PlayerInfo[playerid][pFreezed] = 1;
    			}
    			else
    			{
    				IsPlayerAFK[playerid] = 0;
    				PlayerInfo[playerid][pSleeping] = 0;
    				TogglePlayerControllable(playerid,1);
    				ClearAnimations(playerid);
                    SCM(playerid, COLOR_WHITE, "Bine ai revenit!");
    				SetPlayerToTeamColor(playerid);
    				PlayerInfo[playerid][pFreezed] = 0;
    		    }
            }
            else
    		{
                SCM(playerid, COLOR_WHITE, "{FFB870}You can not sleep, because you have wanted.");
    			return 1;
            }
        }
        else return SCM(playerid, COLOR_WHITE, "Nu esti intr-o casa. Poti dormi doar in case.");
    	return 1;
    }

     

  5. problema rezolvata, multumesc

    Vreau daca un jucator este la nivel este sub 3 , și niciun administrator nu este online , Acest jucator nu poate conversa prin chat

     

    cum se face asta?

    eu am :  pLevel  si pAdmin

     

    Trebuie sa adaug, dupa 

    public OnPlayerText(playerid, text[])
    { 

    ?

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