Cmd problems
#2

Simple, you forgot returning the learn command, try this code
Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
	if(strcmp(cmdtext,"/learn",true)==0)
	{
	  SendClientMessage(playerid,COLOR_YELLOW,"Hello And Welcome To the Server, Some info over here.");
	  SendClientMessage(playerid,COLOR_YELLOW,"If you are Zombie, Use the Knife To infect the humans.");
	  SendClientMessage(playerid,COLOR_YELLOW,"If you are Human, You can Run Or Stay and kill the Zombies With your guns.");
	  SendClientMessage(playerid,COLOR_YELLOW,"If You want to change team Do F4 Than /kill.");
	  SendClientMessage(playerid,COLOR_RED,"Note: Zombies Got 150 HP, Humans Got 100 HP.");
	  SendClientMessage(playerid,COLOR_GREEN,"What you waiting for? Enjoy!!");
       return 1;
	}
	if(strcmp(cmdtext,"/kill",true)==0)
	{
	  SetPlayerHealth(playerid, 0.0);
	  SendClientMessage(playerid,COLOR_YELLOW,"You just killed yourself.");
	  return 1;
	}
	
	return 1;
}
Reply


Messages In This Thread
Cmd problems - by Taz86 - 08.01.2010, 20:25
Re: Cmd problems - by bajskorv123 - 08.01.2010, 20:27
Re: Cmd problems - by Taz86 - 08.01.2010, 20:34
Re: Cmd problems - by bajskorv123 - 08.01.2010, 20:36
Re: Cmd problems - by Taz86 - 08.01.2010, 20:37
Re: Cmd problems - by Doppeyy - 08.01.2010, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)