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 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
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?
pepeelpubero link said:I don't understand.
pepeelpubero link said:I don't understand.
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
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
kakaka link said:I have sampfunc,try compile this code and your gta crash too
m1zg4rd link said:No, if you make script with SAMPFUNCS additional opcodes, you need to add them to your IDE (SannyBuilder).
// 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
{$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
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