CLEO Help How to type Text when connected to server ?

CLEO related
Status
Not open for further replies.

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
how to make text appear when the player connects to the server?
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
Use wait to put the time or don't put nothing to appears after the join.

You can use 0AF8: "Pepe" -1

-1 = white, for colors you need use Hex Colors, for example red: 0xFF0000FF
 

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
pepeelpubero link said:
Use wait to put the time or don't put nothing to appears after the join.

You can use 0AF8: "Pepe" -1

-1 = white, for colors you need use Hex Colors, for example red: 0xFF0000FF
Really, it wasnt a text, but a command that I thought I could take off from the code text and replace it but how can I execute a command in the login of a server?
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
kakaka link said:
Really, it wasnt a text, but a command that I thought I could take off from the code text and replace it but how can I execute a command in the login of a server?

I don't understand.
 

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
pepeelpubero link said:
I don't understand.

uhsuas,thanks for helping.

I Want made cleo,when 1 player conect in server,my sa-mp close.
But how i check if "name_name"(other player) connecting in the server, for my samp close?
 

m1zg4rd_PL

Well-known member
Joined
Jul 19, 2013
Messages
222
Reaction score
0
Code:
for 0@ = 0 to 1000 step 1
  if
    SAMP.IsPlayerConnected(0@)
  then
    SAMP.GetPlayerNickname(0@)
    if
      0C14: strcmp string1 0@ string2 "Styyyyler"
    then
      0AF8: samp add_message_to_chat "{FF0000}DAYUM!" color -1
      0AA5: call 8535003 3 pop 3 0 0 0  // - QUIT GAME
    end
  end
end
 

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
m1zg4rd link said:
Code:
for 0@ = 0 to 1000 step 1
  if
    SAMP.IsPlayerConnected(0@)
  then
    SAMP.GetPlayerNickname(0@)
    if
      0C14: strcmp string1 0@ string2 "Styyyyler"
    then
      0AF8: samp add_message_to_chat "{FF0000}DAYUM!" color -1
      0AA5: call 8535003 3 pop 3 0 0 0  // - QUIT GAME
    end
  end
end

Have 1 error:
Unknown directive SAMP.GetPlayerNickname(0@)
how to fix?
Thanks.
 

m1zg4rd_PL

Well-known member
Joined
Jul 19, 2013
Messages
222
Reaction score
0
kakaka link said:
I have sampfunc,try compile this code and your gta crash too

No, if you make script with SAMPFUNCS additional opcodes, you need to add them to your IDE (SannyBuilder).
 

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
m1zg4rd link said:
No, if you make script with SAMPFUNCS additional opcodes, you need to add them to your IDE (SannyBuilder).

im have and use sampfuncs,but this code is not compile.,when i edit he for this :

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
wait 500
for 0@ = 0 to 60

    if SAMP.IsPlayerConnected(0@)
    then
        2@ = SAMP.GetPlayerNickname(0@)
        if 0C14: strcmp string1 2@ string2 "udhsaudhw"
    then
      0AF8: samp add_message_to_chat "{FF0000}DAYUM!" color -1
      0AA5: call 8535003 3 pop 3 0 0 0  // - QUIT GAME
    end
  end
end

he compile,but i crash in game.
 

m1zg4rd_PL

Well-known member
Joined
Jul 19, 2013
Messages
222
Reaction score
0
:face_palm:

It was a snippet, not a complete script, use that loop in your project...

Code:
{$CLEO .cs}

thread "QuitWhenBadGuyJoined"

:Load
wait 300 
if
  SAMP.Available
else_jump @Load

while true
  wait 0
  for 0@ = 0 to 60
    wait 0
    if
      SAMP.IsPlayerConnected(0@)
    then
      2@ = SAMP.GetPlayerNickname(0@)
      if
        0C14: strcmp string1 2@ string2 "udhsaudhw"
      then
        0AA5: call 8535003 3 pop 3 0 0 0  // - QUIT GAME
      end
    end
  end
end
 

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
m1zg4rd link said:
:face_palm:

It was a snippet, not a complete script, use that loop in your project...

Code:
{$CLEO .cs}

thread "QuitWhenBadGuyJoined"

:Load
wait 300 
if
  SAMP.Available
else_jump @Load

while true
  wait 0
  for 0@ = 0 to 60
    wait 0
    if
      SAMP.IsPlayerConnected(0@)
    then
      2@ = SAMP.GetPlayerNickname(0@)
      if
        0C14: strcmp string1 2@ string2 "udhsaudhw"
      then
        0AA5: call 8535003 3 pop 3 0 0 0  // - QUIT GAME
      end
    end
  end
end

i love you =D +1 LIKE
 
Status
Not open for further replies.
Top