- 0
CE am gresit la IsPlayerinArea?
-
Similar Content
-
- 7 replies
- 838 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
AsSsASIN
Functia :
public IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
return 0;
}
Scriptu pus in OnPlayerSpawn :
if(IsPlayerInArea(playerid, -1591.064, 1702.824, -1741.078, 1539.302))
{
PD = TextDrawCreate(0.0, 434.0,"Police Departament Turf.");
TextDrawFont(PD,3);
TextDrawLetterSize(PD,10,10);
TextDrawColor(PD,0xF6F6F6FF);
TextDrawSetShadow(PD,1);
TextDrawSetOutline(PD,1);
TextDrawBackgroundColor(PD,0x000FF);
TextDrawUseBox(PD,0);
return 1;
}
LE:
Nu se vede nimic :|
Link to comment
Share on other sites
18 answers to this question
Recommended Posts