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