Jump to content

Question

Posted

Salut, voiam sa adaug o comanda intr-un CMD care sa dea /pm [id] "text" cand scriu in chat /greet [id]. Nu am experienta in C# pentru Cleo, deci as vrea un exemplu pentru un astfel de tip de comanda. 

ex:

comanda: /greet 1

rezultat: /pm 1 "Bine ai venit!"

3 answers to this question

Recommended Posts

  • 0
Posted

Am rezolvat. 

:cmd_1
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/pm %s Bine ai venit. Foloseste comanda [/bonus] pentru a primi level 2 si 20.000.000$." 1@

else
    print "~y~/greet + <id-ul jucatorului>" 2000
end
SAMP.CmdRet()

  • 0
Posted
11 hours ago, Teodor Nastase said:

Am rezolvat. 

:cmd_1
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/pm %s Bine ai venit. Foloseste comanda [/bonus] pentru a primi level 2 si 20.000.000$." 1@

else
    print "~y~/greet + <id-ul jucatorului>" 2000
end
SAMP.CmdRet()

no gg, da nu ii vad rostul acestui topic , e sa-mp.ro aici e pawno, nu e c# :)

  • 0
Posted
Acum 3 minute, Kira. a spus:

no gg, da nu ii vad rostul acestui topic , e sa-mp.ro aici e pawno, nu e c# :)

Iar pentru SA-MP poti crea plugin-uri in diferite limbaje, precum C++ si cine stie ce alte limbaje.

Iar limbajul ăla nu este C#, este ceva corcitură de Python cu Assembly.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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. For more details you can also review our Terms of Use and Privacy Policy.