Function - 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)
+--- Thread: Function (
/showthread.php?tid=619802)
Function -
Hackzzzz - 22.10.2016
Hey sa-mp.com. Have someone a function like this?:
If a player talk to a player and the distance is largest than 50.0, the conversations have some interupts? Like this:
X: Hel..o, how a... you?
Y: Hey, you don't have enought signal.
end if the player is sorthest than 50 will be like this:
X: Hello, how are you?
Y: Hey, fine, you?
Something like this, sorry for my bad english. Thank you for help.
Re: Function -
Micko123 - 22.10.2016
As far as i know i don't think so. There is stock PROX you can make but if you are in that range message is visible and if not message is not visible. I am nost sure that you can make that..
Re: Function -
ThatFag - 22.10.2016
Editing Codes wait pls.
Re: Function -
GoldenLion - 22.10.2016
Quote:
Originally Posted by Micko123
As far as i know i don't think so. There is stock PROX you can make but if you are in that range message is visible and if not message is not visible. I am nost sure that you can make that..
|
Hey, have a look here:
https://sampforum.blast.hk/showthread.php?tid=570635
Re: Function -
Micko123 - 22.10.2016
Few stocks won't make damage xD
Re: Function -
ThatFag - 22.10.2016
Код:
public OnPlayerText(playerid, text[])
{
new pText[128];
new thetext[128];
format(thetext,sizeof(thetext),"...");
format(pText, sizeof (pText), "%s", text);
new thenumbers[4];
strins(pText,thetext, 3);
strins(pText,thetext, 8);
strins(pText,thetext, 15);
SendClientMessage(playerid, -1,pText);
printf("%s",pText);
return 1;
}
switch how you define text etc that was just for me to work on testing it.