Calling YCMD command.
#1

Hey, Im creating one system in which I need to call commands sometimes. Is it even possible with YCMD? In zcmd, you could do:

pawn Код:
CallLocalFunction("cmd_your command", "dd", playerid, [..params..]);
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
You're doing it wrong! Both y_commands and zcmd are external interfaces to your script, you don't need to use external interfaces from inside your own code - just have your commands decode parameters and call some function, then also call the same function in your own code without having to encode then decode information in strings. It will make your mode vastly simpler.
Could you show me any examples, please?
Reply
#3

Ow, thank you.
Reply
#4

how to use functioncall();
Reply
#5

im finding out what can be done to execute /login and /register command on onplayerconnect or onplayerrequestclass... coz i dont like that to be used when the players is already spawned
Reply
#6

yeah im using it together with y_commands and y_extra
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)