Jump to content
  • 0

Cum pun ServerBot


Guest sergyu2410

Question

10 answers to this question

Recommended Posts

Incearca asta

http://wiki.sa-mp.com/wiki/Random_Messages

Sa zici daca e bun

mesaje aleatori aveam si eu un fs.....

in fine el nu vrea asa ceva el vrea un filterscript la care, cand cineva zice..... sa zicem "salut" sa apara un mesaj de genul [xBot]salut

sau cand zice ceva de admini sa ii dea [xBot] pentru a vedea ce admini sunt online scrie /admins

Link to comment
Share on other sites

Guest sergyu2410

Ma puteti ajuta cu acest script?

new Serverbot;
new BotMessages[14][256] = {
    "  SERVERBOT: Mesaj 1",
    "  SERVERBOT: Mesaj 2",
    "  SERVERBOT: Mesaj 3",
};
Cand il pun in gamemod im da niste erori
C:\Documents and Settings\Sergyu\Desktop\gf1.pwn(34830) : error 021: symbol already defined: "NameTimer"
C:\Documents and Settings\Sergyu\Desktop\gf1.pwn(34874) : warning 203: symbol is never used: "BotMessages"
C:\Documents and Settings\Sergyu\Desktop\gf1.pwn(34874) : warning 203: symbol is never used: "Serverbot"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Link to comment
Share on other sites

Guest sergyu2410

The Niko Man[RM]" post="17336" timestamp="1250584086"]

Dupa } Nu Mai Pune ;

Imi da multe erori daca nu mai pun ; dupa } .

Am mai adaugat sitimpul de trimitere a mesajelor si acum nu se mai compileaza :-[

#include <a_samp>



new Serverbot;
new BotMessages[3][256] = {
    "  SERVERBOT: Mesaj 1",
    "  SERVERBOT: Mesaj 2",
    "  SERVERBOT: Mesaj 3",
};

SetTimer("SendBotMessages", 60000, true);
// 60000ms = 60 seconds = 1 minute


new randMSG = random(sizeof(RandomMSG)); //calculates the size of RandomMSG (which is 3)
SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "color" with your defined color.

poate sa ma ajute cineva ?

Link to comment
Share on other sites

The Niko Man[RM]" post="17342" timestamp="1250590975"]

iati alt incluce de aici

Propun sa fie banat pentru o luna poate se invata minte

Cum sa fii asa tembel sa postezi asa ceva?

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

Link to comment
Share on other sites

Guest iKer[MOB]

poate sa ma ajute cineva ?

Uite:

1) Sub public OnGameModeInit() pui asta: SetTimer("ServerBot", 300000, 1);

2) Undeva la sfarsitul scriptului (sau unde vrei tu) pui asta:

public ServerBot()

{

new Mesaje;

Mesaje = random(3);

switch(Mesaje)

{

    case 0: { SendClientMessageToAll(CULOARE, "Mesaju tau"); }

    case 1: { SendClientMessageToAll(CULOARE, "Mesaju tau"); }

    case 2: { SendClientMessageToAll(CULOARE, "Mesaju tau"); }

}

}

* Poti pune cate mesaj vrei tu: Editezi random(x) -> x = numar de mesaje, si pui case x: in continuare.

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.