Negrotei Posted January 27, 2022 Share Posted January 27, 2022 Salut, imi poate face cineva o comanda care sa execute spectate? :cmd_8 SAMP.IsCommandTyped(20@) if 0AD4: 20@ = scan_string 20@ format "%d" 21@ then 0B36: samp 1@ = get_player_nickname 21@ say "/spec %s " 1@ say "Salut %s, cu ce te pot ajuta ?" else chatmsg "Admin{ff0000}CMD {ffff99} [/s <id>] ai uitat sa adaugi si id-ul jucatorului. " -1 end SAMP.CmdRet() asta e ce am incercat dar nu imi scrie numele in chat si da spec pe mine. Link to comment Share on other sites More sharing options...
Madalin Posted January 28, 2022 Share Posted January 28, 2022 (edited) Când creezi un topic, te rog să te uiți și în ce secțiune îl creezi. Ți l-am mutat eu în Programming @ Negrotei . De asemenea, :cmd_8 SAMP.IsCommandTyped(20@) if 0AD4: 20@ = scan_string 20@ format "%d" 21@ then 0B36: samp 1@ = get_player_nickname 21@ say "/spec %s" 1@ say "Salut %s, cu ce te pot ajuta ?" 1@ else chatmsg "Admin{FF0000}CMD{FFFF99} [/s <id>] ai uitat sa adaugi si id-ul jucatorului. " -1 end SAMP.CmdRet() Edited January 28, 2022 by Madalin Link to comment Share on other sites More sharing options...
Tupi Posted January 28, 2022 Share Posted January 28, 2022 Poti folosi si varianta lui Madalin insa eu ti-as spune ca folosirea numelui poate duce la nefunctionabilitate in anumite situatii precum, atunci cand sunt 2 jucatori cu nume asemanatoare, nu poti folosi comanda deoarece nu stie la care dintre ei te referi mai exact, de aceea o sa iti las varianta cu ID care functioneaza mereu atat timp cat jucatorul este conectat pe server. :cmd_8 SAMP.IsCommandTyped(20@) if 0AD4: 20@ = scan_string 20@ format "%d" 21@ then if 0B23: samp is_player_connected 21@ then say "/spec %d" 21@ 0B36: samp 1@ = get_player_nickname 21@ say "Salut %s, cu ce te pot ajuta ?" 1@ else chatmsg "Admin{FF0000}CMD{FFFF99} Jucatorul nu este conectat momentan pe server. " -1 end else chatmsg "Admin{FF0000}CMD{FFFF99} [/s <id>] ai uitat sa adaugi si id-ul jucatorului. " -1 end SAMP.CmdRet() Link to comment Share on other sites More sharing options...
Nic Posted January 31, 2022 Share Posted January 31, 2022 salut! mai ai nevoie de ajutor? Link to comment Share on other sites More sharing options...
Nic Posted February 7, 2022 Share Posted February 7, 2022 T/C, deschide alt topic daca mai ai nevoie de ajutor. Link to comment Share on other sites More sharing options...
Recommended Posts