Need help for automatic message! - 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: Need help for automatic message! (
/showthread.php?tid=135573)
Need help for automatic message! -
Assyria - 21.03.2010
Hello!
Anybody knows a command like this; When you enter some pesific position (range in it) pops up automatic message what says: *example* "You entered 4Dragon casino"
Regards,
Assyria
Re: Need help for automatic message! -
-Rebel Son- - 21.03.2010
I think you can do this with a checkpoint. im not sure though.
Re: Need help for automatic message! -
Assyria - 21.03.2010
Код:
public OnPlayerEnterCheckPoint(playerid)
{
SetPlayerCheckpoint(playerid, 501.981, -69.150, 998.757,0);
if (IsPlayerInCheckpoint(playerid))
{
SendClientMessage(playerid,0xAA0000AA,"Dippadai");
}
return 1;
Something like that? Or does somebody comeup with something working
Re: Need help for automatic message! -
Assyria - 21.03.2010
I need help for this!
Код:
public "? ? ? WhatComesHere ? ? ?"
{
if (IsPlayerInRangeOfPoint(playerid, 15.0, 498.9, -76.0, 998.8))
{
SendClientMessage(playerid,0xAA0000AA,"You are in cool position!");
}
return 1;
}
That needs to happen AUTOMATIC without any "/command" ( Meaning = NO OnPlayerCommandText)
Please if you know it, post it!
Re: Need help for automatic message! -
YoungMoolaBaby.2010 - 21.03.2010
try this
code
Код:
else if (GetPlayerState(i) == 1 && PlayerToPoint(3.0, i, {coords here} ))
{
GameTextForPlayer(i, "~w~{text here} ~r~{text here}~y~~n~{text here}!", 5000, 5);
}
and when they leave that postition they wont see anymore tell me if helps
Re: Need help for automatic message! -
Assyria - 21.03.2010
Quote:
Originally Posted by YoungMoolaBaby.2010
try this
code
Код:
else if (GetPlayerState(i) == 1 && PlayerToPoint(3.0, i, {coords here} ))
{
GameTextForPlayer(i, "~w~{text here} ~r~{text here}~y~~n~{text here}!", 5000, 5);
}
|
Seems good but what I put BEFORE/ABOVE that?
Re: Need help for automatic message! -
YoungMoolaBaby.2010 - 21.03.2010
Код:
public CustomPickups()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
Re: Need help for automatic message! -
YoungMoolaBaby.2010 - 21.03.2010
put it under that
Re: Need help for automatic message! -
Assyria - 21.03.2010
Not working.. get super errors
Re: Need help for automatic message! -
YoungMoolaBaby.2010 - 21.03.2010
send me the whole thing i gave u all of it