Jump to content

[INC] RW InfoBox System v3


Guest QWER

Recommended Posts

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

GL_REALTIME je úplně vpravo nahořee jako "hodiny"... některé infoboxy se mi ukazují dole uprostřeed a zrovna ten v tom scriptu se ukazuje úplně nahoře a zasahujee do gl_realtime

Link to comment
Share on other sites

  • 1 month later...

Dúfam že v tvojom testovaciom scripte máš

 

OnInfoBoxGameModeInit();

v public OnGameModeInit...

lebo ak nie tak sa nevytvorí ten textdraw ktorý chceš potom zobraziť (ten stock obsahuje vytvorenie textdrawu...)

tu je ukážkový GM...

 

#include 
#include "RWInfoBox"

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

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);
OnInfoBoxGameModeInit(); // Dúfam že toto tu máš, toto vytvorí ten textdraw ktorý potom chceme zobraziť...
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)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  {
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~1");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~2");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~3");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~4");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~5");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~6");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~7");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~8");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~9");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~10");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~1");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~2");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~3");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~4");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~5");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~6");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~7");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~8");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~9");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~10");
     return 1;
  }
return 0;
}

 

Link to comment
Share on other sites

Dúfam že v tvojom testovaciom scripte máš

 

OnInfoBoxGameModeInit();

v public OnGameModeInit...

lebo ak nie tak sa nevytvorí ten textdraw ktorý chceš potom zobraziť (ten stock obsahuje vytvorenie textdrawu...)

tu je ukážkový GM...

 

#include 
#include "RWInfoBox"

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

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);
OnInfoBoxGameModeInit(); // Dúfam že toto tu máš, toto vytvorí ten textdraw ktorý potom chceme zobraziť...
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)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  {
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~1");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~2");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~3");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~4");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~5");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~6");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~7");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~8");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~9");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~10");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~1");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~2");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~3");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~4");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~5");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~6");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~7");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~8");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~9");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~10");
     return 1;
  }
return 0;
}

 

Link to comment
Share on other sites

Dúfam že v tvojom testovaciom scripte máš

 

OnInfoBoxGameModeInit();

v public OnGameModeInit...

lebo ak nie tak sa nevytvorí ten textdraw ktorý chceš potom zobraziť (ten stock obsahuje vytvorenie textdrawu...)

tu je ukážkový GM...

 

#include 
#include "RWInfoBox"

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

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);
OnInfoBoxGameModeInit(); // Dúfam že toto tu máš, toto vytvorí ten textdraw ktorý potom chceme zobraziť...
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)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  {
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~1");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~2");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~3");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~4");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~5");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~6");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~7");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~8");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~9");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~10");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~1");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~2");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~3");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~4");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~5");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~6");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~7");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~8");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~9");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~10");
     return 1;
  }
return 0;
}

No, praveze tohle nemam, dikes

Link to comment
Share on other sites

Dúfam že v tvojom testovaciom scripte máš

 

OnInfoBoxGameModeInit();

v public OnGameModeInit...

lebo ak nie tak sa nevytvorí ten textdraw ktorý chceš potom zobraziť (ten stock obsahuje vytvorenie textdrawu...)

tu je ukážkový GM...

 

#include 
#include "RWInfoBox"

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

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);
OnInfoBoxGameModeInit(); // Dúfam že toto tu máš, toto vytvorí ten textdraw ktorý potom chceme zobraziť...
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)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  {
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~1");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~2");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~3");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~4");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~5");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~6");
   ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~7");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~8");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~9");
  	ShowInfoBoxForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~10");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~1");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~2");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~3");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~4");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~5");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~6");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~7");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~8");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~9");
   ShowTitleForPlayer(playerid,5,"~r~Info~g~Box~w~ test by ~b~RW ~w~TEAM ~r~10");
     return 1;
  }
return 0;
}

No, praveze tohle nemam, dikes

Link to comment
Share on other sites

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...