Jump to content

Question

Posted

Am vazut multe svuri cu un nume si dau click pe el si se schimba numele sv si gm

A mai fost un  topic dar nu lam gasit cine ma poate ajuta va og

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

13 answers to this question

Recommended Posts

  • 0
  • Administrator
Posted

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.

  • 0
Posted

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.

  • 0
  • Administrator
Posted

Ms vyo dar nu mere.

Cum sa nu mearga.L-am pus si eu la serverul meu si a mers.Poate nu ai facut tu cum trebuie.

logo.png

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

  • 0
Guest LowRyder
Posted

Chiar nu stiam treaba asta cu schimbatul numelui la gm si gamemod.

Ms baieti!

  • 0
Guest LowRyder
Posted

Nu merge l-am facut si filescript si la fel.

  • 0
Posted

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

  • 0
Guest hack18
Posted

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.

  • 0
Posted

ai pus doar la hostname si no offence dar e mai eficient si simplu ce am postat eo :PPP

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

  • 0
Posted

Gasisem ori cum mersi de ajutor cmg

PS:inchideti topicul

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

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.