CLEO Help Need help to create a command

CLEO related
Status
Not open for further replies.

Wavve

Member
Joined
Dec 14, 2019
Messages
7
Reaction score
0
Location
Romania
Hi!
So recently, i wanted to create a command for GTA SAN ANDREAS in SA:MP that when you invite someone in your clan you use a faster cmd "/inv" instead of "/cinvite" and when using "/inv" you also send a message on chat.

Well, I wanted to make tihs command a bit complex and try to do this:

After I invited the player using "/inv" command, I wanted to also send a message on clan chat "/c" after he accepted and joined the clan.

I mean that, after he accepted the invitation and on clan chat appears:

X has joined the clan. (invited by X)

then to appear a msg instantly saying something, like a welcome message. I tried to do it but I don't know how to put it.. I would love some help!
 

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
300
Reaction score
36
Location
Srbija
you just need to find like writhe name and say but if u dont know how you can send me your skript in inbox and i will do it for you :)
 

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
Code:
{$CLEO}
{$INCLUDE SF}
0000:
thread "ClanCMD"

repeat
wait 0
until SAMP.Available()

chatmsg "ClanCMD by Kristler" -1

0B34: "inv" @cinvite

WHILE TRUE
WAIT 0

    alloc 1@ 260
    SAMP.GetChatString(99, 1@, 0, 0, 0)
    IF AND
    20@ == 1
    0C18: $NOT_USED = strstr string1 1@ string2 "joined the clan (invited by"
    THEN
        say "/c Welcome %s" 5@
        say "/c Te rog sa pui tag. [/clan > Clan Tag > Alegerea ta]"
        20@ = 0
    END
    free 1@

END

:cinvite
IF SAMP.IsCommandTyped(20@)
THEN
    IF 0AD4: 20@ = scan_string 20@ format "%d" 10@
    THEN
        0B36: samp 5@ = get_player_nickname 10@
        say "/cinvite %d" 10@
        20@ = 1
    END
ELSE
    chatmsg "[Clan Invite]: Use /inv <id>" -1
END
SAMP.CmdRet()

Cu placere @Wavve
 
Status
Not open for further replies.
Top