eB Luis Posted December 5, 2020 Share Posted December 5, 2020 (edited) 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 December 5, 2020 by LuisVasile Link to comment Share on other sites More sharing options...
TheTom Posted December 5, 2020 Share Posted December 5, 2020 (edited) {$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 December 5, 2020 by Tupi 2 Link to comment Share on other sites More sharing options...
eB Luis Posted December 5, 2020 Author Share Posted December 5, 2020 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! 1 Link to comment Share on other sites More sharing options...
Tupi Posted December 5, 2020 Share Posted December 5, 2020 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 1 Link to comment Share on other sites More sharing options...
Recommended Posts