15.06.2010, 15:35
When going through an area, to show you a TextDraw, as I do that?
new msgtimer;
forward msgtimer;
public OnGamemodeInit()
{
msgtimer = SetTimer("msgtimer", 3000, true); // change 3000 to whatever time you want, in milliseconds
// rest of stuff
}
public msgtimer()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInRangeOfPoint(i,300,x, y, z)) // I didn't check the function order but I think its playerid, range, X coord, Y coord, Z coord.
{
GameTextForPlayer(i, "You are entering an area", 3000, 4); // 3000 is time and 4 is style. Check wiki for more info https://sampwiki.blast.hk/wiki/GameTextStyle
}
}
return 1;
}
Originally Posted by eXtr1kE
Not so, I as an example, they make a GangZone when I get into it to defend a TextDraw. And when out of it disappear.
Sorry if I expressed wrong... ****** Translate goes wrong. |