OnPlayerCommand Text Problems [2]
#3

The problem comes when i do the /about code

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd(login,5,cmdtext);
  dcmd(register,8,cmdtext);
  
	 if(strcmp(cmdtext, "/help carshop", true) == 0)
			{
			if(IsAtCarshop(playerid, 0))
			{
			SendClientMessage(playerid,blue,"[!] Find a Car Dealer, and see what vehicles he has for sale.");
			}
			else
			{
			SendClientMessage(playerid,blue,"[!] You must be at the CarShop to use this command!");
			}
	 		return 1;
	}

	
	 if(strcmp(cmdtext, "/help", true) == 0)
		{
		SendClientMessage(playerid,LIGHTGREEN,"--------------------------------------------------------");
		SendClientMessage(playerid,LIGHTGREEN,"Type '/help' to bring up this help menu.");
		SendClientMessage(playerid,LIGHTGREEN,"--------------------------------------------------------");
		}
	 return 1;
	}
	
 	 //if(strcmp(cmdtext, "/about", true) == 0)
	//	{
	//	SendClientMessage(playerid,ADMINRED,"--------------------------------------------------------");
	//	SendClientMessage(playerid,ADMINRED,"About EviL Role Play");
	//	SendClientMessage(playerid,ADMINRED,"==");
SendClientMessage(playerid,ADMINRED,"--------------------------------------------------------");
	//	}
	// return 1;
//	}
Reply


Messages In This Thread
OnPlayerCommand Text Problems [2] - by nickbugun - 16.04.2009, 16:09
Re: OnPlayerCommand Text Problems [2] - by Rks25 - 16.04.2009, 16:49
Re: OnPlayerCommand Text Problems [2] - by nickbugun - 16.04.2009, 19:16
Re: OnPlayerCommand Text Problems [2] - by Rks25 - 16.04.2009, 19:24
Re: OnPlayerCommand Text Problems [2] - by Rks25 - 17.04.2009, 17:07
Re: OnPlayerCommand Text Problems [2] - by nickbugun - 17.04.2009, 17:32
Re: OnPlayerCommand Text Problems [2] - by Rks25 - 17.04.2009, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)