Es geht net er taucht einfach net auf hir der code:
new Text:Copyright;
public OnGameModeInit()
{
Copyright = TextDrawCreate(515 ,448 , " ");
TextDrawFont(Copyright , 1);
TextDrawLetterSize(Copyright , 0.6, 4.2);
TextDrawColor(Copyright , 0xff0000FF);
TextDrawSetOutline(Copyright , false);
TextDrawSetProportional(Copyright , true);
TextDrawSetShadow(Copyright , 1);
return 1;
}
public OnPlayerUpdate(playerid)
{
if(IsPlayerInArea(playerid,1052.4753,-1727.8063,1124.0238,-1816.8523))
{
new str[128];
format(str,sizeof(str),"No-DM-Zone");
TextDrawSetString(Copyright,str);
TextDrawShowForPlayer(playerid,Copyright);
}
else
{
TextDrawHideForPlayer(playerid,Copyright);
}
return 1;
}
IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, 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;
}