Sending a command withing the script
#1

So i have this help dialog, and i would like to when people chose that dialog, it sends them a command

Something like 'CallRemoteFunction' or 'CallLocalFunction'

Ok, but not sure what else it would need.

Thanks!
Reply
#2

pawn Код:
CallLocalFunction("OnPlayerCommandText", "is", playerid, "/yourcommand");
I believe this also would work:

pawn Код:
OnPlayerCommandText(playerid, "/mycommand");
Reply
#3

Aha! Thanks LarzI. I had it like that too, just didn't knew it needed the '/'

Thanks again!
Reply
#4

Typical mistake.
No problem!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)