How Can I Do This?
#3

Quote:
Originally Posted by 0rb
Something like this
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  if (newkeys & KEY_SUBMISSION)
  {
    OnPlayerCommandText(playerid, "/ticket");
    //if /ticket is in another script, use:
    //CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/ticket");
    return true;
  }

  return false;
}
Thanks so much I really appreciate it!

Now I need to know how I could associate this with a dcmd command please. Would it be OnPlayerCommandText(playerid, "dcmd_command");? Thanks in advance!
Reply


Messages In This Thread
How Can I Do This? - by notec100 - 15.05.2009, 23:57
Re: How Can I Do This? - by yom - 16.05.2009, 00:01
Re: How Can I Do This? - by notec100 - 16.05.2009, 00:21
Re: How Can I Do This? - by yom - 16.05.2009, 01:31
Re: How Can I Do This? - by notec100 - 16.05.2009, 01:37

Forum Jump:


Users browsing this thread: 1 Guest(s)