Jump to content

arci224

Uživatel
  • Příspěvků

    331
  • Registrován

  • Aktivní

  • Vítězných dnů

    2

Příspěvky posted by arci224

  1. Bigwebe nic proti ale na serveru máš ubohý AT .. frox capon atd. ho*no umí nonstop afk... odpojení pří rp akci a vis co je este ubohejsuho že cheaty na serveru jsou zakazane ale ty je mas :d

    Takze jestli to tak si AT pojmenuj Afk Team

  2. ~> Hned po napsání příkazu ho už portne.

    ~> Těmi timery jsi vlastně "vytvořil" dva callbacky ale voláš tam jenom ten jeden.

    ~> Formátuješ proměnnou ale nic více s ní neděláš.

    ~> Když ho to neportne, proč ho zabiješ?

    ~> Takže, jestli to SPRÁVNĚ funguje, tak by to byl zázrak...

     

    Prosim:

     

     

    new
    new 
    	tPorting[MAX_PLAYERS],
    	bool: bPorting[MAX_PLAYERS char];
    
    public 
    	OnPlayerCommandText(...) {
    
    	if (!strcmp(cmdtext, "/teleport")) {
    
    		...
    		bPorting{playerid} = true;
    		tPorting[playerid] = SetTimerEx("pPorting", 5000, false, "i", playerid);
    		return true;
    	}
    	return false;
    }
    
    forward pPorting(playerid); public pPorting(playerid) {
    
    	SetPlayerPos(playerid, ...); /* Úspěšně se portne */
    }
    
    public 
    	OnPlayerTakeDamage(...) {
    
    	if(issuerid != INVALID_PLAYER_ID) {
    
    		if (bPorting{playerid}) {
    
    			KillTimer(tPorting[playerid]); bPorting{playerid} = false;
    			new 
    				sString[144 + 1],
    				sNick[MAX_PLAYER_NAME + 1];
    			GetPlayerName(issuerid, sNick, sizeof(sNick));
    			format(sString, sizeof(sString), ..., sNick);
    			SendClientMessage(..., sString);
    		}

     

     

    ~> Doplň si to, a po případě oprav, kdybych se někde seknul. Btw, nezapomeň ještě na OnPlayerDisconnect().

     

    No když tedy opravuješ ty mě tak já tebe.

    Hned 1. řádek a hned chyba .. neuzavřené new. viz hned tam máš 2x new. :*

  3.  

     

    No práve že ja nevim jak :d Lebo sem retard ma to byť takhle:

    if (strcmp("/teleport", cmdtext, true, 10) == 0)
    {
            SetTimerEx("Teleport",1000,false,"i",playerid);
            SCM(playerid,COLOR_RED, "[ ! ] Za 5 sekund budeš teleportovan, pokial ta niekdo postreli teleport sa zruši.");
            new Float:health;
            GetPlayerHealth(playerid,health);
    }
    
    forward Teleport(playerid);
    public Teleport(playerid)
    {
            new Float:health2;
            GetPlayerHealth(playerid,health2);
            if (health = health2)
            {
                    SetTimerEx("Teleport2",1000,false,"i",playerid);
            }
            if (health > health2)
            {
                    SCM(playerid,COLOR_RED,"[ ! ] Byl si postrelen, teleport se ruši");
            }
    }
    
    forward Teleport2(playerid);
    public Teleport2(playerid)
    {
            new Float:health2;
            GetPlayerHealth(playerid,health2);
            if (health = health2)
            {
                    SetTimerEx("Teleport3",1000,false,"i",playerid);
            }
            if (health > health2)
            {
                    SCM(playerid,COLOR_RED,"[ ! ] Byl si postrelen, teleport se ruši");
            }
    }
    
    ATD... až po 5
    
    forward Teleport5(playerid);
    public Teleport5(playerid)
    {
            new Float:health2;
            GetPlayerHealth(playerid,health2);
            if (health = health2)
            {
                    SetPlayerPos(playerid,-1,-1,-1);
            }
            if (health > health2)
            {
                    SCM(playerid,COLOR_RED,"[ ! ] Byl si postrelen, teleport se ruši");
            }
    }
    

    Nevim jestli to je dobře a myslite že by to šlo nechci si do davat do FS lebo pak by sem mnel vetši starost to mazáť :d

     

     

    Nevím proč tam máš zbytečně tolikrát teleport ..

    zde máš celý kód...

     

     

    new teleport[MAX_PLAYERS]; // někam do gamemode...
    new PortujeSe[MAX_PLAYERS];
    
    if (strcmp("/teleport", cmdtext, true, 10) == 0)
    {
            SCM(playerid,COLOR_RED, "[ ! ] Za 5 sekund budeš teleportovan, pokial ta niekdo postreli teleport sa zruši.");
            new Float:health;
            GetPlayerHealth(playerid,health);
            teleport[playerid] = SetTimerEx("teleport", 5000, true, "i", playerid);
            PortujeSe[playerid] = 1;
    }
    
    forward Teleport(playerid);
    public Teleport(playerid)
    {
            SetPlayerPos(playerid,-1,-1,-1);
            PortujeSe[playerid] = 0;
    }
    
    public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
    {
        if(issuerid != INVALID_PLAYER_ID)
        {
            new string[128];
            KillTimer(teleport[playerid]);
            PortujeSe[playerid] = 0;
            new hrac[25];
            GetPlayerName(issuerid, hrac, sizeof(hrac));
            format(string, sizeof(string), "Byl jsi zasažen hráčem %s teleport se ruší", hrac);
            SendClientMessage(playerid, COLOR-RED, string);
        }
        return 1;
    } 

     

     

    Nemáš zač, myslím si že toto by mělo fungovat.

  4.  

    Zdravíme jdu vám ohlásit další update.

    Který si myslím popožene můj mod o kus do předu od ostatních..

    A to je jedna věc.

    Pokud otevřete úkol tak dostanete i Audio doprovod pro hráče co mají zapnuté v sampu zvuky.

    Takže pokud.

    Vezmete úkol tak rovnou se vám začne přehrávat audio na kterém bude hlas nejmenované osoby(Můj) která vám úkol přečte i pomocí audia.

    Toto jsem na žádném jiném serveru neviděl takže si myslím že vtomto bych mohl bejt trošku jinej od podobnejch modu.

    Jestly to tak si nahraj Google Translate a ten tam dej

  5. Takže pošlu ti to sem v jednom. uprav si to dle sebe. máš to z Street Life

     

     

    
    
    forward CreateBank(bankid, Float:x, Float:y, Float:z);
    public CreateBank(bankid, Float:x, Float:y, Float:z)
    {
    	BankPickup[bankid] = CreatePickup(1274, 23, x, y, z, -1);
    	Create3DTextLabel("Banka",COLOR_GREEN_DARK,x,y,z,40,0);
    	return 1;
    }
    
    forward FormatPlayerInfoBox(playerid, text1[], text2[], time);
    public FormatPlayerInfoBox(playerid, text1[], text2[], time)
    {
    	if(IsPlayerConnected(playerid))
    	{
    	    TextDrawSetString(InfoBoxNadpis[playerid], text1);
    	    TextDrawHideForPlayer(playerid, InfoBoxNadpis[playerid]);
    	    TextDrawShowForPlayer(playerid, InfoBoxNadpis[playerid]);
    
    	    TextDrawSetString(InfoBoxText[playerid], text2);
    	    TextDrawHideForPlayer(playerid, InfoBoxText[playerid]);
    	    TextDrawShowForPlayer(playerid, InfoBoxText[playerid]);
    
    	    if(time > 0) SetTimerEx("HideInfoBoxForPlayer", time, 0, "i", playerid);
    	}
    	return 1;
    }
    
    forward HideInfoBoxForPlayer(playerid);
    public HideInfoBoxForPlayer(playerid)
    {
    	if(IsPlayerConnected(playerid))
    	{
    		TextDrawHideForPlayer(playerid, InfoBoxNadpis[playerid]);
    		TextDrawHideForPlayer(playerid, InfoBoxText[playerid]);
    	}
    	return 1;
    }
    
    forward IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius);
    public IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius)
    {
    	return IsPlayerInRangeOfPoint(playerid, radius, x, y, z);
    }
    

     

     

     

    Stačí jen HLEDAT

×
×
  • Create New...