SA-MP Forums Archive
How to make when a player is at my cordinates, to show him a messege at center of the screen? - 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: How to make when a player is at my cordinates, to show him a messege at center of the screen? (/showthread.php?tid=458999)



How to make when a player is at my cordinates, to show him a messege at center of the screen? - bustern - 19.08.2013

So when a player is at cordinates like 2505.5984,-1694.5410,13.5581,180.3185, i want to player to get a messege at the center of screen like "You can repair your car here"


Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? - jordy.kiesebrink - 19.08.2013

pawn Code:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2505.5984, -1694.5410, 13.5581)) {
    GameTextForPlayer(playerid, 0xFFFFFFFF, "You can repair your car here");
}



Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? - bustern - 19.08.2013

When i compile this, i got eror


Re : How to make when a player is at my cordinates, to show him a messege at center of the screen? - Garwan50 - 19.08.2013

tell us what are those errors...


Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? - bustern - 19.08.2013

C:\Users\Niki AdminA\Desktop\Тестване на PAWNO\filterscripts\myfirstcmd.pwn(303) : error 035: argument type mismatch (argument 2)


Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? - LocMax - 19.08.2013

https://sampwiki.blast.hk/wiki/GameTextForPlayer

So, change Jordy's code to:

pawn Code:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2505.5984, -1694.5410, 13.5581)) {
    GameTextForPlayer(playerid,"You can repair your car here", 5000, 3);
}
Styles: https://sampwiki.blast.hk/wiki/GameTextStyle#Text_Styles


Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? - jordy.kiesebrink - 19.08.2013

pawn Code:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2505.5984, -1694.5410, 13.5581)) {
    GameTextForPlayer(playerid, 0xFFFFFFFF, "You can repair your car here",5000,3);
}//format the time and style sorry my mistake made it out of my mind :D
EDIT: Thanks LocMax was replying in front of me haha


Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? - bustern - 19.08.2013

Doesnt work i compiled it, but when i come to the place then the text didnt show


Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? - Micius - 19.08.2013

Put that on Timer, or OnPlayerUpdate


Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? - PrinceKumar - 19.08.2013

Where you are putting these lines...?