Command without /
#9

That'll do stuff even when you're not at a computer. If you just randomly type jobs, that would come up.

Quote:
Originally Posted by Abernethy
Look.
I forgot where I saw the code before, so i need your help.
I've already got when they type /pc it's about 850+ lines. All I'm doing is this.
pawn Код:
public OnPlayerText(playerid, text[])
{
  //if(WhatTextDoIPlaceHereToDetect, like, if(strcmp"Games" seriously, I have no idea.
  {
    if (PlayerOnPC[playerid] == 1)
    {
      SendClientMessage(playerid, COLOR_BLUE, "| |______|CONNECTED|______| |");
      SendClientMessage(playerid, COLOR_YELLOW, "-GAMING CARD EXPIRED");
      SendClientMessage(playerid, COLOR_WHITE, "We're sorry, but your gaming");
      SendClientMessage(playerid, COLOR_WHITE, "card as expired. Please try");
      SendClientMessage(playerid, COLOR_WHITE, "purchasing another.");
      SendClientMessage(playerid, COLOR_WHITE, " ");
      SendClientMessage(playerid, COLOR_YELLOW, "  Coming 17/9/1992 ");
      SendClientMessage(playerid, COLOR_YELLOW, "   *+* Pacman *+*");
       SendClientMessage(playerid, COLOR_BLUE, "|___________________________|");
    }
  }
  else
  {
  SendClientMessage(playerid, COLOR_GREY, "** You are not Connected to a Computer.");
  }
  return 1;
}
That's the closest you have got to something working...
Again, my example.

pawn Код:
public OnPlayerText(playerid, text[])
{
  if(PlayerOnPC[playerid] == 1)
  {
    if(!strcmp(text, "Games", true))
    {
      // game code here
    }
   
    return false;
  }
 
  return true;
}
Hope it can help you.
Reply


Messages In This Thread
Command without / - by Abernethy - 11.07.2009, 10:17
Re: Command without / - by Anarkien - 11.07.2009, 10:19
Re: Command without / - by Abernethy - 11.07.2009, 10:28
Re: Command without / - by Westie - 11.07.2009, 10:32
Re: Command without / - by saiberfun - 11.07.2009, 10:34
Re: Command without / - by Abernethy - 11.07.2009, 10:40
Re: Command without / - by happyface - 11.07.2009, 10:45
Re: Command without / - by Abernethy - 11.07.2009, 10:50
Re: Command without / - by Westie - 11.07.2009, 10:55

Forum Jump:


Users browsing this thread: 1 Guest(s)