12.04.2011, 07:30
For godsake learn using the search function.
Also check this first, before asking for a script: http://forum.sa-mp.com/showthread.ph...2&highlight=me.
And you can simply use IsPlayerInRangeOfPoint to check if he's in range. If he is, send the message, otherwise not.
EDIT:
@Grand Theft Otto:
LOL 265 string? Lol, max is even 128. Don't use too big arrays.
Example: "** %s %s".
That are 8 characters. The PlayerName can be max 24, so 8+24 = 32.
And let's say the action can be maximal 35 characters (strlen) .So 32+35 = 67.
You could just do "new string[67];" !
@The other guy (forgot name):
Don't just copy it -.- - He might not have the same variables etc.
Also check this first, before asking for a script: http://forum.sa-mp.com/showthread.ph...2&highlight=me.
And you can simply use IsPlayerInRangeOfPoint to check if he's in range. If he is, send the message, otherwise not.
EDIT:
@Grand Theft Otto:
LOL 265 string? Lol, max is even 128. Don't use too big arrays.
Example: "** %s %s".
That are 8 characters. The PlayerName can be max 24, so 8+24 = 32.
And let's say the action can be maximal 35 characters (strlen) .So 32+35 = 67.
You could just do "new string[67];" !
@The other guy (forgot name):
Don't just copy it -.- - He might not have the same variables etc.