\n not working in my script
#7

Quote:
Originally Posted by roryprayana
Посмотреть сообщение
and please help me
how to add rules and command?
Uh, to add commands, search for OnPlayerCommandText.

You replace /mycommand with the name of the command you want to make. And the rest? Well you'll have to have SOME knowledge of pawno scripting.

Simple /heal command:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/heal", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 100)
		SendClientMessage(playerid, COLOR_YELLOW, "You have been healed);
		return 1;
	}
Reply


Messages In This Thread
\n not working in my script - by Calvingreen17 - 28.12.2012, 07:20
Re: \n not working in my script - by Grim_ - 28.12.2012, 07:25
Re: \n not working in my script - by Calvingreen17 - 28.12.2012, 07:43
Re: \n not working in my script - by Calvingreen17 - 28.12.2012, 08:23
Re: \n not working in my script - by roryprayana - 28.12.2012, 08:29
Re: \n not working in my script - by Calvingreen17 - 28.12.2012, 08:32
Re: \n not working in my script - by Calvingreen17 - 28.12.2012, 09:31
Re: \n not working in my script - by Konstantinos - 28.12.2012, 09:42
Re: \n not working in my script - by Calvingreen17 - 28.12.2012, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)