Ich wollte eine schwarze Box vor den Bildschirm "knallen" beim Connecten aber irgendwie kommt die nicht.
Hier mal das Script:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#define COLOR_RED 0xFF0000AA
new Text:Text;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Epic");
print("--------------------------------------\n");
Text = TextDrawCreate(240.0,580.0,"_");
TextDrawUseBox(Text, 1);
TextDrawTextSize(Text,240.0,580.0);
TextDrawBackgroundColor(Text ,0x000000FF);
TextDrawBoxColor(Text ,0x000000FF);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Epic");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Text);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
Pls help