Heal in red marker
#9

Quote:
Originally Posted by [SAP
Sidhu ]
Код:
public OnPlayerSpawn(playerid)
{
  SetPlayerCheckpoint(playerid, x, y, z);
  return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
  SetPlayerHealth(playerid, 100.0);
  return 1;
}
Just put that anywhere in the code...
Put the:

Код:
if(strcmp(cmdtext, "/gethealth", true) == 0)
	{
   	SetPlayerCheckpoint(playerid,x,y,z,4.0);
		GameTextForPlayer(playerid, "~g~Get Health", 5000, 1);
		if (TestDistance(playerid,giveplayerid,x,y.z,7))
		SetPlayerHealth(playerid, 100.0);
		return 1;
	}
Under OnPlayerCommandText
Why is it that as soon as i enter the red marker it heals me? i want it to be you type /gethealth and then it heals me and charges 100 dollers.

Please someone help
Reply


Messages In This Thread
Heal in red marker - by killdahobo99 - 15.06.2009, 21:44
Re: Heal in red marker - by miokie - 15.06.2009, 21:45
Re: Heal in red marker - by joeri55 - 15.06.2009, 21:56
Re: Heal in red marker - by killdahobo99 - 15.06.2009, 23:27
Re: Heal in red marker - by steven_italy - 16.06.2009, 00:49
Re: Heal in red marker - by yezizhu - 16.06.2009, 01:05
Re: Heal in red marker - by killdahobo99 - 16.06.2009, 01:08
Re: Heal in red marker - by sidhu123 - 16.06.2009, 01:10
Re: Heal in red marker - by killdahobo99 - 16.06.2009, 01:35
Re: Heal in red marker - by Moustafa - 16.06.2009, 01:49

Forum Jump:


Users browsing this thread: 1 Guest(s)