Help Automatic Command Before Login Server

shoval

Active member
Joined
Aug 21, 2013
Messages
28
Reaction score
0
Hello.
I'm trying to make a file that will say a command in chat automatically before I log in a server.

I want it to send the command "/Command" before I log in server.
But I want to customize the command.

Can someone help me?
And give me the source code for it?
Thanks in advanced!
 

wavelengthzero

Active member
Joined
Feb 18, 2014
Messages
45
Reaction score
0
I'm still kinda new to this, but maybe this will work:

Code:
0000: NOP
thread "cmd"

:CMD_1
wait 0
if 
SAMP.Available()
else_jump @CMD_1
say "/Command"

You will need SAMPFUNCS
 

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,435
Solutions
5
Reaction score
905
Location
Israel
cuntstuble link said:
I'm still kinda new to this, but maybe this will work:

Code:
0000: NOP
thread "cmd"

:CMD_1
wait 0
if 
SAMP.Available()
else_jump @CMD_1
say "/Command"

You will need SAMPFUNCS
Code:
{$CLEO .cs}

0000: NOP
thread "cmd"

:CMD_1
wait 0
if 
SAMP.Available()
else_jump @CMD_1
say "/MapRecord"
0A93: end_custom_thread
I will tell you something.
I have a script called "MapPiratePLUS.asi",
I want it to automatically say "/MapRecord",
This script doesn't activate that.
 

wavelengthzero

Active member
Joined
Feb 18, 2014
Messages
45
Reaction score
0
SobFoX link said:
I will tell you something.
I have a script called "MapPiratePLUS.asi",
I want it to automatically say "/MapRecord",
This script doesn't activate that.


Sorry, I meant "IsPlayerConnected()":
Code:
{$CLEO .cs}
0000: NOP
thread "cmd"

:CMD_1
wait 0
if
SAMP.IsPlayerConnected($PLAYER_ACTOR)
else_jump @CMD_1
say "/MapRecord"
0A93: end_custom_thread
 

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,435
Solutions
5
Reaction score
905
Location
Israel
cuntstuble link said:
Sorry, I meant "IsPlayerConnected()":
Code:
{$CLEO .cs}
0000: NOP
thread "cmd"

:CMD_1
wait 0
if
SAMP.IsPlayerConnected($PLAYER_ACTOR)
else_jump @CMD_1
say "/MapRecord"
0A93: end_custom_thread
But still...
Code:
say "/MapRecord"
It's not activating the plugin https://ugbase.eu/releases/map-pirate-plus-copy-server-maps!/
I need it to active the plugin by saying "/MapRecord".
 

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,435
Solutions
5
Reaction score
905
Location
Israel
Never mind.
Got the fix.

Code:
{$CLEO .cs}
{$INCLUDE SF}


0000: NOP
thread "cmd"

:CMD_1
wait 0
if
SAMP.Available()
else_jump @CMD_1
0C8F: samp process_chat_input "/maprecord"
0A93: end_custom_thread
 
Top