SA-MP Forums Archive
Problem with checkpoint - textual. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with checkpoint - textual. (/showthread.php?tid=261275)



Problem with checkpoint - textual. - Carvos - 12.06.2011

Hello there,

I'm working on a small filterscript, mostly adding some edits in it. Now I've encountered a problem which is as follows. When a player in the server steps into the checkpoint he should receive several client messages which he actually receives. Now, when you stay in the checkpoint your chat is being spammed as the messages are constantly being send.

If anyone could explain me how I should work this out. If you want to help me over Windows Live Messenger please send me a private message to receive my messenger, or send yours to me. ( Please keep in mind that I'm not a professional or even a medium-skilled scripter. )

Thanks in advance,

- Carvos.


Re: Problem with checkpoint - textual. - ScottCFR - 12.06.2011

Post the checkpoint code bit?

... Annoying 120 second rule ...


Re: Problem with checkpoint - textual. - Carvos - 12.06.2011

Код:
stock GetHouseStats(playerid, hid)
{
	SendClientMessage(playerid, GREY, "|__________| House Commands |__________|");
        SendClientMessage(playerid, WHITE, "/househelp | /buy | /visithouse.");

	SendClientMessage(playerid, GREY, "|__________| House Information |__________|");
        new string[256];

    if (strcmp(hInfo[hid][Name],"ForSale",true))
    {
		format(string, sizeof(string), "Owned by: %s.", hInfo[hid][Name]);
  		SendClientMessage(playerid, WHITE, string);
	}
	else
	{
	    SendClientMessage(playerid, WHITE, "This house is for sale.");
	}

	hid = Gethi(playerid);
	if(strcmp(hInfo[hid][Renter],"ForRent",true))
	{
		format(string, sizeof(string), "Rented by: %s.", hInfo[hid][Renter]);
		SendClientMessage(playerid, WHITE, string);
	}
	format(string, sizeof(string), "Cost: %i.", hInfo[hid][Cost]);
	SendClientMessage(playerid, WHITE, string);
}



Re: Problem with checkpoint - textual. - Carvos - 12.06.2011

Solved it myself, I'm sorry.