Help with Textdraw
#1

I want to make on a textdraw apear every 6 sec and then chage it self like
first it shows this
Код:
help = TextDrawCreate(131.000000, 407.000000, "Ako vi e potrebna pomos pisete /help");
then after 6 sec it shows this
Код:
abc = TextDrawCreate(131.000000, 407.000000, "DarkLife RolePlay by Dark Crow/");
then again anither message and another i want to add 5 messages but i don't know how to setup the timer?
Reply
#2

Quote:
Originally Posted by Dark Crow
Посмотреть сообщение
I want to make on a textdraw apear every 6 sec and then chage it self like
first it shows this
Код:
help = TextDrawCreate(131.000000, 407.000000, "Ako vi e potrebna pomos pisete /help");
then after 6 sec it shows this
Код:
abc = TextDrawCreate(131.000000, 407.000000, "DarkLife RolePlay by Dark Crow/");
then again anither message and another i want to add 5 messages but i don't know how to setup the timer?
Simple, https://sampforum.blast.hk/showthread.php?tid=70884

Use this filterscript, I fully recommend you to use this.

-FalconX
Reply
#3

The FS doesn't load i put it server.cfg and in filterscripts but when i run the server it doesn't show that it is loaded and when i play it doesn't show the messages
Reply
#4

Quote:
Originally Posted by Dark Crow
Посмотреть сообщение
The FS doesn't load i put it server.cfg and in filterscripts but when i run the server it doesn't show that it is loaded and when i play it doesn't show the messages
You should check the Server_logs.txt file in your server-files. There must be written a reason of WHy the script doesn't load. Well check if you have uploaded the .amx file in the filterscript folder and put that in the server.cfg aswell.

Post your Server_log.txt here so we can check what is the problem.

-FalconX
Reply
#5

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d-R2, ©2005-2011 SA-MP Team

[16:48:07] weburl = "www.sa-mp.com"  (string)
[16:48:07] 
[16:48:07] Server Plugins
[16:48:07] --------------
[16:48:07]  Loading plugin: sscanf
[16:48:07] 

[16:48:07]  ===============================

[16:48:07]       sscanf plugin loaded.     

[16:48:07]    © 2009 Alex "******" Cole

[16:48:07]  ===============================

[16:48:07]   Loaded.
[16:48:07]  Loading plugin: streamer
[16:48:07] 

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[16:48:07]   Loaded.
[16:48:07]  Loaded 2 plugins.

[16:48:07] 
[16:48:07] Ban list
[16:48:07] --------
[16:48:07]  Loaded: samp.ban
[16:48:07] 
[16:48:07] 
[16:48:07] Filterscripts
[16:48:07] ---------------
[16:48:07]   Loading filterscript 'TAXI.amx'...
[16:48:07]  
[16:48:07]  
[16:48:07] tAxI's Dynamic Vehicle Streamer v0.1
[16:48:07]  
[16:48:07] -----------------------------------------------------------------
[16:48:07]  
[16:48:07] tAxI's Dynamic Vehicle Streamer has detected 145 Vehicle Spawns...
[16:48:07]  
[16:48:07] Only 675 spawns may be activated at any one time simultaneously...
[16:48:07]  
[16:48:07] tAxI's Dynamic Vehicle Streamer is now running...ENJOY!!!
[16:48:07]  
[16:48:07] -----------------------------------------------------------------
[16:48:07]  
[16:48:07]  
[16:48:07]  
[16:48:07]   Loading filterscript 'F_STRE~1.amx'...
[16:48:07] F_Streamer Loaded successful.
[16:48:07]   Loading filterscript 'anims.amx'...
[16:48:07]   Loading filterscript 'avs.amx'...
[16:48:07] 
------------------------------------------------
[16:48:07]      Advanced Vehicle System 1.0 by MadeMan
[16:48:07] ------------------------------------------------
[16:48:07]   Loaded 13 vehicles
[16:48:07]   Loaded 1 dealerships
[16:48:07]   Loaded 3 fuel stations
[16:48:07] ------------------------------------------------

[16:48:07]   Loading filterscript 'BusInt.amx'...
[16:48:07]   ===== Bus Interior by Cybertron =======
[16:48:07]   Loading filterscript 'DropGun.amx'...
[16:48:07] 

[16:48:07]  Drop Gun [FS] By gimini ©
[16:48:07]  Do not remove copyright!!!
[16:48:07]  Version 1.3

[16:48:07]   Loading filterscript 'iSpy.amx'...
[16:48:07] 
--------------------------------------
[16:48:07]  Watching system loaded up
[16:48:07] --------------------------------------

[16:48:07]   Loading filterscript 'rcon.amx'...
[16:48:07] 
--------------------------------------
[16:48:07]  SafeCon Server Protection V0.9
[16:48:07]  Made by Mauzen 5-11-2011
[16:48:07] [SafeCon] Using hardcoded passwords: Security checks passed.
[16:48:07] --------------------------------------

[16:48:07]   Loading filterscript 'ь.amx'...
[16:48:07]   Unable to load filterscript '.amx'.
[16:48:07]   Loaded 8 filterscripts.

[16:48:07] HouseInfo:0 Owner:The State hTakings 2045 hVec 418
[16:48:07] HouseInfo:1 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:2 Owner:The State hTakings 21600 hVec 418
[16:48:07] HouseInfo:3 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:4 Owner:The State hTakings 3400 hVec 418
[16:48:07] HouseInfo:5 Owner:The State hTakings 77256 hVec 418
[16:48:07] HouseInfo:6 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:7 Owner:The State hTakings 19077 hVec 418
[16:48:07] HouseInfo:8 Owner:The State hTakings 93406 hVec 418
[16:48:07] HouseInfo:9 Owner:The State hTakings 100 hVec 418
[16:48:07] HouseInfo:10 Owner:The State hTakings 839 hVec 418
[16:48:07] HouseInfo:11 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:12 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:13 Owner:The State hTakings 40600 hVec 418
[16:48:07] HouseInfo:14 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:15 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:16 Owner:The State hTakings 2600 hVec 418
[16:48:07] HouseInfo:17 Owner:The State hTakings 64000 hVec 418
[16:48:07] HouseInfo:18 Owner:The State hTakings 65000 hVec 418
[16:48:07] HouseInfo:19 Owner:The State hTakings 20000 hVec 418
[16:48:07] HouseInfo:20 Owner:Mite_Gunner hTakings 0 hVec 418
[16:48:07] HouseInfo:21 Owner:The State hTakings 60000 hVec 418
[16:48:07] HouseInfo:22 Owner:The State hTakings 41351 hVec 418
[16:48:07] HouseInfo:23 Owner:The State hTakings 20000 hVec 418
[16:48:07] HouseInfo:24 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:25 Owner:The State hTakings 70 hVec 418
[16:48:07] HouseInfo:26 Owner:The State hTakings 20000 hVec 418
[16:48:07] HouseInfo:27 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:28 Owner:The State hTakings 124 hVec 418
[16:48:07] HouseInfo:29 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:30 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:31 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:32 Owner:The State hTakings 0 hVec 418
[16:48:07] HouseInfo:33 Owner:The State hTakings 0 hVec 418
[16:48:07] BizzInfo:0 Owner:Nikola_Stojcevski Message:~w~Gun Shop Entfee:300 Till:0 Products:100/500 Interior:7.

[16:48:07] BizzInfo:1 Owner:The State Message:~w~Gun Shop Entfee:0 Till:0 Products:100/500 Interior:6.

[16:48:07] BizzInfo:2 Owner:The State Message:~w~24/7 Entfee:0 Till:0 Products:100/500 Interior:10.

[16:48:07] BizzInfo:3 Owner:Atanase_Andov Message:~w~24/7 Entfee:300 Till:1200 Products:77/500 Interior:17.

[16:48:07] BizzInfo:4 Owner:The State Message:~w~24/7 Entfee:0 Till:0 Products:100/500 Interior:18.

[16:48:07] BizzInfo:5 Owner:The State Message:~w~24/7 Entfee:0 Till:0 Products:100/500 Interior:6.

[16:48:07] BizzInfo:6 Owner:The State Message:~w~Gun Shop Entfee:0 Till:0 Products:100/500 Interior:6.

[16:48:07] SBizzInfo:0 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:1 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:2 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:3 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:4 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:5 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:6 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:7 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:8 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:9 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:10 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] SBizzInfo:11 Owner: Message: Entfee:0 Till:0 Products:0/0 Interior:0.

[16:48:07] IRC:0 Admin:Dark_Crow MOTD: Hello Password: dark NeedPass: 0 Lock: 0
[16:48:07] IRC:1 Admin:White_Crow MOTD:  Password:  NeedPass: 0 Lock: 0
[16:48:07] IRC:2 Admin: MOTD:  Password:  NeedPass: 0 Lock: 0
[16:48:07] IRC:3 Admin: MOTD:  Password:  NeedPass: 0 Lock: 0
[16:48:07] IRC:4 Admin: MOTD:  Password:  NeedPass: 0 Lock: 0
[16:48:07] IRC:5 Admin: MOTD:  Password:  NeedPass: 0 Lock: 0
[16:48:07] IRC:6 Admin: MOTD:  Password:  NeedPass: 0 Lock: 0
[16:48:07] IRC:7 Admin: MOTD:  Password:  NeedPass: 0 Lock: 0
[16:48:07] IRC:8 Admin: MOTD:  Password:  NeedPass: 0 Lock: 0
[16:48:07] IRC:9 Admin: MOTD:  Password:  NeedPass: 0 Lock: 0
[16:48:07] Family:0 Taken: 0 Name:None MOTD:None Leader:None Members:0 SpawnX:0.000000 SpawnY:0.000000 SpawnZ:0.000000 Int:0
[16:48:07] Family:1 Taken: 0 Name:None MOTD:None Leader:None Members:0 SpawnX:0.000000 SpawnY:0.000000 SpawnZ:0.000000 Int:0
[16:48:07] Family:2 Taken: 0 Name:None MOTD:None Leader:None Members:0 SpawnX:0.000000 SpawnY:0.000000 SpawnZ:0.000000 Int:0
[16:48:07] Family:3 Taken: 0 Name:None MOTD:None Leader:None Members:0 SpawnX:0.000000 SpawnY:0.000000 SpawnZ:0.000000 Int:0
[16:48:07] Family:4 Taken: 0 Name:None MOTD:None Leader:None Members:0 SpawnX:0.000000 SpawnY:0.000000 SpawnZ:0.000000 Int:0
[16:48:07] Family:5 Taken: 0 Name:None MOTD:None Leader:None Members:0 SpawnX:0.000000 SpawnY:0.000000 SpawnZ:0.000000 Int:0
[16:48:07] Family:6 Taken: 0 Name:None MOTD:None Leader:None Members:0 SpawnX:0.000000 SpawnY:0.000000 SpawnZ:0.000000 Int:0
[16:48:07] Family:7 Taken: 0 Name:None MOTD:None Leader:None Members:0 SpawnX:0.000000 SpawnY:0.000000 SpawnZ:0.000000 Int:0
[16:48:07] Family:8 Taken: 0 Name:None MOTD:None Leader:None Members:0 SpawnX:0.000000 SpawnY:0.000000 SpawnZ:0.000000 Int:0
[16:48:07] Family:9 Taken: 0 Name:None MOTD:None Leader:None Members:0 SpawnX:0.000000 SpawnY:0.000000 SpawnZ:0.000000 Int:0
[16:48:07] CK:0 Taken: 0 Sendername:No-one Giveplayer: No-one
[16:48:07] CK:1 Taken: 0 Sendername:No-one Giveplayer: No-one
[16:48:07] CK:2 Taken: 0 Sendername:No-one Giveplayer: No-one
[16:48:07] CK:3 Taken: 0 Sendername:No-one Giveplayer: No-one
[16:48:07] CK:4 Taken: 0 Sendername:No-one Giveplayer: No-one
[16:48:07] CK:5 Taken: 0 Sendername:No-one Giveplayer: No-one
[16:48:07] CK:6 Taken: 0 Sendername:No-one Giveplayer: No-one
[16:48:07] CK:7 Taken: 0 Sendername:No-one Giveplayer: No-one
[16:48:07] CK:8 Taken: 0 Sendername:No-one Giveplayer: No-one
[16:48:07] CK:9 Taken: 0 Sendername:No-one Giveplayer: No-one
[16:48:07] Paper:0 Used: 0 Maker:No-one. Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
[16:48:07] Paper:1 Used: 0 Maker:0

 Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
[16:48:07] Paper:2 Used: 0 Maker:No-one. Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
[16:48:07] Paper:3 Used: 0 Maker:0

 Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
[16:48:07] Paper:4 Used: 0 Maker:No-one. Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
[16:48:07] Paper:5 Used: 0 Maker:0

 Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
[16:48:07] Paper:6 Used: 0 Maker:No-one. Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
[16:48:07] Paper:7 Used: 0 Maker:0

 Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
[16:48:07] Paper:8 Used: 0 Maker:No-one. Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
[16:48:07] Paper:9 Used: 0 Maker:0

 Title: No Title. Text1: I have no text inserted here yet. Text2: I have no text inserted here yet. Text3: I have no text inserted here yet. Text4: I have no text inserted here yet. Text5: I have no text inserted here yet. Text6: I have no text inserted here yet. Text7: I have no text inserted here ye
[16:48:07] EnableTirePopping() function is removed.
[16:48:07] Warning: EnableZoneNames() is removed since 0.3
[16:48:07] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[16:48:07] Pickups Max = 100, Current Pickups = 82
Its like it doesn't read the FS at all
Reply
#6

Quote:

[16:48:07] Loading filterscript 'ь.amx'...
[16:48:07] Unable to load filterscript '.amx'.

What is this ? I don't think you have loaded the randommessages.amx script properly, please re-check it.

-FalconX
Reply
#7

Hello DarkCrow,

There is also a tutorial to do this sort of thing

First add this as a global new

pawn Код:
new RandomMSG[][] =
{
    "Random Message 1",
    "Random Message 2",
    "Random Message 3"
};
Then OnGameModeInit add SetTimer("SendMSG", 60, true); This is done in milliseconds.

Then add this as a public

pawn Код:
public SendMSG()
{
    new randMSG = random(sizeof(RandomMSG));
    SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "COLOR" with your defined color.
}
Reply
#8

It worked i deleted a FS about RCON safety but the messages are now loaded and i made the rcon FS last and they both loaded but i get the
Quote:

[16:48:07] Loading filterscript 'ь.amx'...
[16:48:07] Unable to load filterscript '.amx'.

again why is that ?
Reply
#9

well now i have a problem the rcon FS causes this to apear
Quote:

[16:48:07] Loading filterscript 'ь.amx'...
[16:48:07] Unable to load filterscript '.amx'.

And i can only use the rcon or the messages why does that happen i am using savecon
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)