SA-MP Forums Archive
Im New, /b Chat - 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: Im New, /b Chat (/showthread.php?tid=65304)



Im New, /b Chat - Robin_J - 11.02.2009

Ok so im Brand spanking new to this, so lay off a little and consider this si my first ever script, im trying to do it so when someone types /b <message> it comes up like this:
"New_Player says ((Hey, This Is OOC Chat Example))"

Ive got this, used a tutorial on a different type of chat, and am trying to use the kind of format but make it slightly different.

I need to set it to a radius, Instead of (i think) the main chat

Thanks for the help


Re: Im New, /b Chat - MenaceX^ - 11.02.2009

Use bigstrtok function.


Re: Im New, /b Chat - pspleo - 11.02.2009

Quote:
Originally Posted by MenaceX^
Use bigstrtok function.
Uhm...? he's asking to send a client message within a radius, so wtf are you talking about?

And to robin:
LimitGlobalChatRadius is applying to... when player speaks? i think so. SendClientMessageToAll just ignores GlobalChatRadius.
What you can do is
- Use SendPlayerMessageToAll
If it doesn't work, just reply back.


Re: Im New, /b Chat - Robin_J - 11.02.2009

I edited it,

Do you mean like that?
i think thats what you ment


UPDATE: Also is there w way n PawnSCITE that i could use to test to see if it works before putting it IG?


Re: Im New, /b Chat - pspleo - 11.02.2009

Quote:
Originally Posted by Robin_J
I edited it,

Do you mean like that?
i think thats what you ment
No, i didn't mean that. Use
SendPlayerMessageToAll


Re: Im New, /b Chat - Robin_J - 11.02.2009

Ok i completley changed the format, im jsut stuck on setting it locally,

Is it something like

"if(GetDistanceBetweenPlayers(playerid,giveplayeri d) < 30)"