Jump to content
  • 0

Nume gm si sv


IcE.

Question

13 answers to this question

Recommended Posts

  • 0

si eu vreau sa stiu asta dar nimeni nu raspunde :(

Pai daca cineva nu stie nu raspune.

In fine,eu stiu doar la Numele Serverului cum se face sa se schimbe. :P

#include <a_samp>

new changehn = 1;
forward AutoChangeHN();

public OnFilterScriptInit()
{
    SetTimer("AutoChangeHN", 5000, 1); // se schimba dupa 3 secunde
}

public AutoChangeHN()
{
        if(changehn == 1)
        {
                changehn = 2;
        SendRconCommand("hostname Hostname 1");
        return 1;
    }
        else if(changehn == 2)
        {
                changehn = 3;
        SendRconCommand("hostname Hostname 2");
        return 1;
    }
    else if(changehn == 3)
    {
        changehn = 1;
        SendRconCommand("hostname Hostname 3");
        return 1;
    }
    return 1;
}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

  • 0

La Gamemode:

#include <a_samp>

new changegm = 1;
forward AutoChangeGM();

public OnFilterScriptInit()
{
     SetTimer("AutoChangeGM", 5000, 1); // se schimba dupa 3 secunde
}

public AutoChangeGM()
{
    if(changegm == 1)
    {
        changegm = 2;
        SetGameModeText("Gamemode Name 1");
        return 1;
    }
    else if(changegm == 2)
    {
        changegm = 3;
        SetGameModeText("Gamemode Name 2");
        return 1;
    }
    else if(changegm == 3)
    {
        changegm = 1;
        SetGameModeText("Gamemode Name 3");
        return 1;
    }
    return 1;
}

PS: Nu's sigur ca merge.

B-Zone: Role Play Server -  77.81.202.202:7777 [url=http://www.game-monitor.com/sa-mp_GameServer/77.

Link to comment
Share on other sites

  • 0

Ati comis-o putzarilor...

fitzi atenti cat de simplu ;)

(http://wiki.sa-mp.com/wiki/Advanced_Server_Controls#Using_RCON)

#include <a_samp>
#define FILTERSCRIPT
#define SECUNDE 5 //5 secunde

new mode=0;

forward NameChange();
public NameChange()
{
   
   if( mode > 1 ) mode = 0;

   new names[] = { "Serveru' Banana Fericita",  "Serveru' lu' Fane Carlig", "Server de PutZari" };
   new gnames[] = { "Modu' lu' Putza Bleaga", "Stunt si Toate cele", "Ala bala portocala", "Mod Mijto" };
   new rand2 = random(sizeof(gnames));
   new rand = random(sizeof(names));
   new string[50];   

   if( mode == 0 )
   {
        format(string, 50, "gamemodetext %s", gnames[rand2]);
        SendRconCommand(string);
   }else
   if( mode == 1 )
   {
        format(string, 50, "hostname %s", names[rand]);
        SendRconCommand(string);
   }
   
   mode = mode +1;

   return 1;
}

public OnFilterScriptInit()
{
    SetTimer("NameChange", SECUNDE * 1000, 1); // X secunde
    return 1;
}

Filterscriptul asta o sa-ti schimbe alternativ, la 5 secunde numele la mod / host iar dupa 5 secunde schimba celalalt, poti sa pui cate nume vrei tu acolo, gnames pt gamemode si names pt hostname.

Deci primele 5 secunde se schimba numele la mod, dupa 5 secunde numele la host si tot asa, pt a evita confuzia, se schimba alternativ :P.

Sall

PS: RazR ai fost pe aproape

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

  • 0
Guest hack18

Miscatil pe asta schimba numele la host/map/GM alternativ la 3 secunde

#include <a_samp>

new changehn = 1;
forward AutoChangeHN();

public OnFilterScriptInit()
{
     SetTimer("AutoChangeHN", 5000, 1); // Automatic change hostname timer (default is 5 second).
}

public AutoChangeHN()
{
	if(changehn == 1)
 	{
  		changehn = 2;
    	SendRconCommand("hostname Samp.PwnTeam.Ro:7777");
    	SendRconCommand("mapname San Andreas");
    	SetGameModeText("PwnTeam RPG");
     	return 1;
    }
	else if(changehn == 2)
 	{
  		changehn = 3;
    	SendRconCommand("hostname PwnTeam RPG Server [0.2x]");
    	SendRconCommand("mapname LS/SF");
    	SetGameModeText("Ultimate GF");
    	return 1;
    }
    else if(changehn == 3)
 	{
  		changehn = 1;
    	SendRconCommand("hostname PwnTeam Comunity");
    	SendRconCommand("mapname Romanian/Europe");
    	SetGameModeText("Best Base RP");
    	return 1;
    }
    return 1;
}

merge 100%, iar daca nu va convine ca e pus numele serverului meu il puteti schimba oicum ca si idee puteti verifica ca acesta este si la mine pe server.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By Penelope
      Salutare. Am luat un panel de pe net ca sa ma pot juca pe el si sa fac schimbari, si am observat ca daca ai . la nume (Penelope. de exemplu) iti zice ca nu iti recunoaste profilul. Ma puteti ajuta va rog ?
      Script-ul: 
      </div><div class="main-content"> <?php if(!defined('panel')) die('Nope.'); if(!isset($_SESSION['user']) && !isset(Config::$_url[1])) echo '<meta http-equiv="refresh" content="0;URL=\''.Config::$_PAGE_URL.'login\'/>'; if(isset(Config::$_url[1])) $user = (int)Config::$_url[1]; if(!isset(Config::$_url[1])) echo '<meta http-equiv="refresh" content="0;URL=\''.Config::$_PAGE_URL.'\'/>'; $q = Config::$g_con->prepare('SELECT * FROM `users` WHERE `name` = ?'); $q->execute(array(Config::$_url[1])); if(!$q->rowCount()) { echo ' <title>This user doesn\'t exist</title> <div class="breadcrumbs" id="breadcrumbs"> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="<?php echo Config::$_PAGE_URL; ?>">Home</a> </li> <li class="active">This user doesn\'t exist</li> </ul><!-- /.breadcrumb --> <div class="nav-search" id="nav-search"> <form method="POST" action="search"> <span class="input-icon"> <input type="text" placeholder="Search ..." name="sname" id="username" type="submit" class="nav-search-input" autocomplete="on"> <i class="ace-icon fa fa-search nav-search-icon"></i> </span> </form> </div> <!-- /.nav-search --> </div> <div class="page-content"><div class="row-fluid"><div class="span12"> <div class="alert alert-danger">This user doesn\'t exist.</div>'; return; }
    • By Tefyuu
      In dreapta la server cum editez numele serverului?
    • By Jiust
      Ajutati-ma! Cum pun nume deasupra hartii, am harta potrivita dar nu stiu programul cu care trebuie sa fac acest lucru! Ajutati-ma plizzz
    • By Kalinachoo
      Salut, cum as putea pune in fata admin-ului un nume ? Gen Trial Admin, Manager,Fondator,Scripter etc.
    • By Ale3x
      Salutare, vreau sa modific numele serverului de la onplayerconnect dar nu gasesc nimic in gamemode.
      Nu reusesc sa modific acolo unde scrie sa.gadly.ro deoarece nu gasesc in gamemode acest nume: https://imgur.com/a/x9YGNba
      Ma gandesc ca poate e o chestie mai complexa din baza de date dar nu ma pricep sa umblu foarte adanc acolo.
  • Recently Browsing   0 members

    No registered users viewing this page.

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