Jump to content

Question

Posted (edited)

Salut, cum pot face sa creez de exemplu o comanda de genul: /sms [numele jucatorului] si text?

O sa va las un model mai jos ca sa vedeti despre ce vreau sa zic.

SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@   
    0AF9: samp say_msg "/sms [numar de telefon] [text] " 1@     
else
 {FFFFFF}chatmsg "{FFCC66}Syntax: {FFFFFF} [/sms [numele jucatorului] [text]"
end
SAMP.CmdRet()

Edited by RikyAdv

1 answer to this question

Recommended Posts

  • 0
Posted

Luam de exemplu numele de Andrei.

Vreau ca in loc de /sms 1234 si mesaj sa scriu mai bine /sms Andrei si mesaj, daca ma intelegeti ce zic.

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
×
×
  • 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.