Jump to content
  • 0

2 Probleme


CiuChy

Question

Am si eu 2 probleme , am postat la GF dar degeaba..., nu primesc prea repede raspunsul acolo .

#include <a_samp>

#define FILTERSCRIPT
#define COLOR 0xFF8040FF // <--- Current color is orange. If you wish to add a color of your choice, edit the '0xFF8040FF' text.
#if defined FILTERSCRIPT

forward msg1(playerid);
forward msg2(playerid);
forward msg3(playerid);
forward msg4(playerid);
forward msg5(playerid);
forward msg6(playerid);
forward msg7(playerid);
forward msg8(playerid);
forward msg9(playerid);
public OnFilterScriptInit()
{
   print("\n---------------------------------------------------------");
   print(" Auto-message filterscript by [OTR]Menace modificat CiuChy");
   print("-----------------------------------------------------------\n");


   SetTimer("msg1",60000/*60000*/,true);

   // The first timer to start the message cycle.
   // The messages will start after 1 MINUTE of the gamemode executing,
   // it will appear every 5 minutes. If you wish to change the time,
   //edit the '300000' value, and add your own time in MILLISECONDS.
   return 1;
}

public OnFilterScriptExit()
{
   return 1;
}

#else

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

#endif

public msg1(playerid)
{
   SendClientMessage(playerid,COLOR,"[INFO] Ai vazut un codat ? /report <ID> <reason>");
   SetTimer("msg2",60000,false);
   return 1;
}

public msg2(playerid)
{
   SendClientMessage(playerid,COLOR,"[INFO] Vrei sa intri intr-o factiune ? Cerere pe forum");
   SetTimer("msg3",60000,false);
   return 1;
}

public msg3(playerid)
{
   SendClientMessage(playerid,COLOR,"[INFO] Ai nevoie de ajutor ? /needhelp <mesaj>");
   SetTimer("msg4",60000,false);
   return 1;
}

public msg4(playerid)
{
   SendClientMessage(playerid,COLOR,"[INFO] Vrei sa iti deschizi capota ? /vcontrol");
   SetTimer("msg5",60000,false);
   return 1;
}
public msg5(playerid)
{
   SendClientMessage(playerid,COLOR,"[INFO] Vrei sa te pui afk ? /afk");
   SetTimer("msg6",60000,false);
   return 1;
}
public msg6(playerid)
{
   SendClientMessage(playerid,COLOR,"[INFO] Vrei sa afli mai multe comenzi ? /altecomenzi");
   SetTimer("msg7",60000,false);
   return 1;
}
public msg8(playerid)
{
   SendClientMessage(playerid,COLOR,"[INFO] Vrei sa cauti o locatie ? /gps");
   SetTimer("msg9",60000,false);
   return 1;
}
public msg9(playerid)
{
   SendClientMessage(playerid,COLOR,"[INFO] Vrei sa iti pui ochelari ? /glasses ");
   SetTimer("msg1",60000,false);
   return 1;
}

1.Cine ma poate ajuta in legatura cu aceste MESAJE AUTOMATE .. am o problema , apar cate 2 deodata , apar aiurea , nu apar una dupa alta... nu stiu cum sa fac...

Daca ma puteti ajuta sa apara una dupa ALTA , dar mesajele sa se REPETE ! nu  sa inceapa cu primul mesaj si sa se termine la ultimul, sa se repete . Multumesc Anticipat !

2.Am o problema ... am un sistem GPS , pot crea locatiile direct din joc cu /fsave , dar problema este ca nu stiu unde gasesc sa schimb numele , sau sa o sterg daca vreau sa nu mai fie locatia aceea.. sau sa sterg toate locatiile , pe langa acest sistem GPS , langa mai era inca un program SQLite Database Browser, cu acest program cred ca voi gasii acele locatii din GPS sa le pot sterge etc. , dar nu stiu cum sa umblu cu programul , ma puteti ajuta putin ??? Multumesc Anticipat !

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

La problema 1:

La inceputul GM-ului adauga:

forward msg1(playerid);

forward msg2(playerid);

forward msg3(playerid);

forward msg4(playerid);

forward msg5(playerid);

Cauta

public OnGameModeInit

Sub asta adaugi:

//==============================================================================

    SetTimer("msg1",300000/*60000*/,false);

//==============================================================================

La sfarsitul GM-ului adaugi:

public msg1(playerid)

{

SendClientMessage(playerid,0xA07800FF," MESAJ 1");

SetTimer("msg2",300000,false);

return 1;

}

public msg2(playerid)

{

SendClientMessage(playerid,0xA07800FF," MESAJ 2");

SetTimer("msg3",300000,false);

return 1;

}

public msg3(playerid)

{

SendClientMessage(playerid,0xA07800FF," MESAJ 3");

SetTimer("msg1",300000,false);

return 1;

}

public msg4(playerid)

{

SendClientMessage(playerid,0xA07800FF," MESAJ 4");

SetTimer("msg4",300000,false);

return 1;

}

public msg5(playerid)

{

SendClientMessage(playerid,0xA07800FF," MESAJ 5");

SetTimer("msg4",300000,false);

return 1;

}

La problema 2 nu ma pricep deci nu ma bag..

stats.php?page=2&ip=samp.zonek.ro&port=7777
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

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.