Jump to content

[Cerere] salut pe /r


eB Luis
 Share

Recommended Posts

Salut! se poate realiza un mod cu care as putea să folosesc /sal(ID) si mesajul să fie Salut! (ID X) Ce mai faci?

Multumesc anticipat!

Tin să mentionez daca pot să fac modul asta să meargă si pe /r.

Edited by LuisVasile
Link to comment
Share on other sites

 

{$CLEO}

0662: "x"
thread "x" 
wait 3000

0B34: samp register_client_command "sal" to_label @sal
0B34: samp register_client_command "salr" to_label @salr

:repeat
wait 0
jump @repeat


:sal
SAMP.IsCommandTyped(1@)
if 
0AD4: 1@ = scan_string 1@ format "%d" 2@ 
then     
3@ = SAMP.GetPlayerNickname(2@) 
say "/t %d Salut %s Ce mai faci?" 2@ 3@
else               
chatmsg "scrie /sal <id>" -1
end
SAMP.CmdRet

:salr
SAMP.IsCommandTyped(1@)
if 
0AD4: 1@ = scan_string 1@ format "%d" 2@  
then   
3@ = SAMP.GetPlayerNickname(2@) 
say "/r Salut %s Ce mai faci?" 3@
else               
chatmsg "scrie /salr <id>" -1
end
SAMP.CmdRet

 

Edited by Tupi
Link to comment
Share on other sites

39 minutes ago, TheTom said:

se pare ca DjC a fost mai rapid decat  mine, dar iti dau ce am facut si eu:


{$CLEO}

0662: "x"
thread "x" 
wait 3000

0B34: samp register_client_command "sal" to_label @sal
0B34: samp register_client_command "salr" to_label @salr

:repeat
wait 0
jump @repeat


:sal
SAMP.IsCommandTyped(1@)
if 
0AD4: 1@ = scan_string 1@ format "%d" 2@ 
then     
3@ = SAMP.GetPlayerNickname(2@) 
say "/t %d Salut %s Ce mai faci?" 2@ 3@
else               
chatmsg "scrie /sal <id>" -1
end
SAMP.CmdRet

:salr
SAMP.IsCommandTyped(1@)
if 
0AD4: 1@ = scan_string 1@ format "%d" 2@  
then   
3@ = SAMP.GetPlayerNickname(2@) 
say "/r Salut %s Ce mai faci?" 3@
else               
chatmsg "scrie /salr <id>" -1
end
SAMP.CmdRet

 

Multumesc amândurora v-am dat +1 la amandoi fiindca meritati si faceti o treaba bună, o seara plăcuta!

Link to comment
Share on other sites

Salut,

 

Ai link mai jos de la modul cerut, comenzile sunt /sal pentru a saluta pe cineva in felul cerut pe /sms si /salr pentru a saluta pe cineva pe /r in felul cerut. Numai bine!

 

LINK

Link to comment
Share on other sites

  • Tupi locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.