Peršokti į turinį
  • ŽAIDIMAI
  • , ŽAIDIMAI
  • ŽAIDIMAI

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 5298 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Recommended Posts

Svečias

Taigi išaušo tokia diena kai man vėl reikia jūsų pagalbos, liaudie... Taigi nutariau pasidaryti GangZone's, gaujų zonas ir iškilo man problema su kordinatėmis, taigi kiek žinau vienintelis būdas yra serveryje rašyti /save ir vėliau išsitraukti kordinates? Jei tai nevienintelis būdas gal galėtumėte man pasakyti paprastesni? Nes aš noriu pasidaryti keturkampi ar stačiakampi ir nenoriu kokios nesąmoningos figūros...

P.S. Atsiprašau jei tekstas buvo nerišlus, tikiuosi supratote kad aš ieškau lengvesnio būdo gauti gang zone kordinates...

Atsidėkosiu +R3P už pagalba

Man reikia tokio daigto:

[youtubecom]

[/youtubecom]

1. Funkcijos ir bindai

Aš pamokoje naudosiu viena funkciją ir bindą(define). Jos nėra privalomos, bet tai sutrumpins script'ą ir pagreitins mūsų darbą. Kur nors script'o viršuje prirašykime:

new str[128];
#define SendFormatedMessageToAll(%1,%2,%3) format(str, sizeof(str), %2, %3) && SendClientMessageToAll(%1, str)
PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; }

2. Kintamieji

Mums prireiks 2 tipų kintamųjų boolean ir Float. Kur nors script'o viršuje(kad ir prie funkcijų) prirašykime:

new Float:DmRandomSpawn[][] =
{
   {-2387.1711,1552.6752,26.0469},
   {{-2387.1711,1552.6752,26.0469},},
   {-2424.2341,1548.0833,23.1406},
   {-2437.3765,1546.8503,8.3984},
   {-2392.4607,1548.5109,2.1172},
   {-2465.9368,1548.8820,23.6641},
   {-2469.4543,1546.6943,33.2273}
};

new bool:DM[MAX_PLAYERS];

{-2387.1711,1552.6752,26.0469}, - čia teleport'o koordinatės jų gali būtį nors ir 1000. Kiekvieną koordinačių gabaliuką({-2387.1711,1552.6752,26.0469}) atskiriame kableliu. Po paskutinio nereikia! Čia rašomas koordinates galite gauti nuėję į bet kokį serverį ir norimoje vietoje parašius /save, visas išsaugotas koordinates rasite ...\Mano Dokumentai\GTA San Andreas User Files\SAMP\savedpositions.txt. Ten rasite kažką panašaus į AddPlayerClass(170,-938.7966,1425.1680,30.4340,72.4031,0,0,0,0,0,0); paryškinti skaičiai rašosi į tuos skliaustus.

3. Komandos

Jei sukūrėme zoną, reikia kažkaip ten nusigaut. Sukurkime OnPlayerCommandText callback'e komandas. /dm:

if (strcmp("/dm", cmdtext, true, 10) == 0)
{
	if(DM[playerid] == 1) return SendClientMessage(playerid, 0xFF0000FF, "Tu jau dalyvauji DeathMach!");
	new iRandom = random(sizeof(MgDmRandomSpawn));
	SetPlayerPos(playerid, MgDmRandomSpawn[iRandom][0], MgDmRandomSpawn[iRandom][1],MgDmRandomSpawn[iRandom][2]);
	DM[playerid] = true;
	ResetPlayerWeapons(playerid);
	GivePlayerWeapon(playerid, 38, 100000);
	SetPlayerVirtualWorld(playerid, 2);
	SetPlayerHealth(playerid, 100);
	SetPlayerArmour(playerid, 100);
	SendFormatedMessageToAll(0xFFFFFFFF,"{FF0000}%s {00FF00}prisijungė į MiniGun DeathMach. {FF0000}[/minigames]", PlayerName(playerid));
	return 1;
}

GivePlayerWeapon(playerid, 38, 100000); - su šia funkcija duodame ginklą, jei norite duoti ne vieną ginklą tiesiog įrašykite kelias tokias funkcijas. GivePlayerWeapon(playerid, Ginklo ID, Kulkų skaičius); - jei kuklų skaičių nustatysite į 100000 žaidime rodys kad kulkų skaičius neribotas. Ginklo ID galite rasti čia(jums reikalingas ID! Nenaudokite model ID!).

Nusiteleportavome? Visada juk nešaudysime, reikalinga išėjimo komandą. /exit:

if (strcmp("/exit", cmdtext, true, 10) == 0)
{
DM[playerid] = false;
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SpawnPlayer(playerid);
return 1;
}

4. Mirštame

Šaudomės ir mirštame, turėtu kažkas nutikti. Padarykime, kad mirus nuteleportuotų atgal ir duotu ginklus bei gyvybes. OnPlayerSpawn callback'e sukuriame kodą:

if(DM[playerid] == true)
  	{
	new iRandom = random(sizeof(MgDmRandomSpawn));
	SetPlayerPos(playerid, MgDmRandomSpawn[iRandom][0], MgDmRandomSpawn[iRandom][1],MgDmRandomSpawn[iRandom][2]);
	ResetPlayerWeapons(playerid);
	GivePlayerWeapon(playerid, 38, 100000);
	SetPlayerVirtualWorld(playerid, 2);
	SetPlayerHealth(playerid, 1000);
	SetPlayerArmour(playerid, 100);
}

Būtinai gale callback'o, prieš pat return!

Svečias
1. Funkcijos ir bindai

Aš pamokoje naudosiu viena funkciją ir bindą(define). Jos nėra privalomos, bet tai sutrumpins script'ą ir pagreitins mūsų darbą. Kur nors script'o viršuje prirašykime:

new str[128];
#define SendFormatedMessageToAll(%1,%2,%3) format(str, sizeof(str), %2, %3) && SendClientMessageToAll(%1, str)
PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; }

2. Kintamieji

Mums prireiks 2 tipų kintamųjų boolean ir Float. Kur nors script'o viršuje(kad ir prie funkcijų) prirašykime:

new Float:DmRandomSpawn[][] =
{
   {-2387.1711,1552.6752,26.0469},
   {{-2387.1711,1552.6752,26.0469},},
   {-2424.2341,1548.0833,23.1406},
   {-2437.3765,1546.8503,8.3984},
   {-2392.4607,1548.5109,2.1172},
   {-2465.9368,1548.8820,23.6641},
   {-2469.4543,1546.6943,33.2273}
};

new bool:DM[MAX_PLAYERS];

{-2387.1711,1552.6752,26.0469}, - čia teleport'o koordinatės jų gali būtį nors ir 1000. Kiekvieną koordinačių gabaliuką({-2387.1711,1552.6752,26.0469}) atskiriame kableliu. Po paskutinio nereikia! Čia rašomas koordinates galite gauti nuėję į bet kokį serverį ir norimoje vietoje parašius /save, visas išsaugotas koordinates rasite ...\Mano Dokumentai\GTA San Andreas User Files\SAMP\savedpositions.txt. Ten rasite kažką panašaus į AddPlayerClass(170,-938.7966,1425.1680,30.4340,72.4031,0,0,0,0,0,0); paryškinti skaičiai rašosi į tuos skliaustus.

3. Komandos

Jei sukūrėme zoną, reikia kažkaip ten nusigaut. Sukurkime OnPlayerCommandText callback'e komandas. /dm:

if (strcmp("/dm", cmdtext, true, 10) == 0)
{
	if(DM[playerid] == 1) return SendClientMessage(playerid, 0xFF0000FF, "Tu jau dalyvauji DeathMach!");
	new iRandom = random(sizeof(MgDmRandomSpawn));
	SetPlayerPos(playerid, MgDmRandomSpawn[iRandom][0], MgDmRandomSpawn[iRandom][1],MgDmRandomSpawn[iRandom][2]);
	DM[playerid] = true;
	ResetPlayerWeapons(playerid);
	GivePlayerWeapon(playerid, 38, 100000);
	SetPlayerVirtualWorld(playerid, 2);
	SetPlayerHealth(playerid, 100);
	SetPlayerArmour(playerid, 100);
	SendFormatedMessageToAll(0xFFFFFFFF,"{FF0000}%s {00FF00}prisijungė į MiniGun DeathMach. {FF0000}[/minigames]", PlayerName(playerid));
	return 1;
}

GivePlayerWeapon(playerid, 38, 100000); - su šia funkcija duodame ginklą, jei norite duoti ne vieną ginklą tiesiog įrašykite kelias tokias funkcijas. GivePlayerWeapon(playerid, Ginklo ID, Kulkų skaičius); - jei kuklų skaičių nustatysite į 100000 žaidime rodys kad kulkų skaičius neribotas. Ginklo ID galite rasti čia(jums reikalingas ID! Nenaudokite model ID!).

Nusiteleportavome? Visada juk nešaudysime, reikalinga išėjimo komandą. /exit:

if (strcmp("/exit", cmdtext, true, 10) == 0)
{
DM[playerid] = false;
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SpawnPlayer(playerid);
return 1;
}

4. Mirštame

Šaudomės ir mirštame, turėtu kažkas nutikti. Padarykime, kad mirus nuteleportuotų atgal ir duotu ginklus bei gyvybes. OnPlayerSpawn callback'e sukuriame kodą:

if(DM[playerid] == true)
  	{
	new iRandom = random(sizeof(MgDmRandomSpawn));
	SetPlayerPos(playerid, MgDmRandomSpawn[iRandom][0], MgDmRandomSpawn[iRandom][1],MgDmRandomSpawn[iRandom][2]);
	ResetPlayerWeapons(playerid);
	GivePlayerWeapon(playerid, 38, 100000);
	SetPlayerVirtualWorld(playerid, 2);
	SetPlayerHealth(playerid, 1000);
	SetPlayerArmour(playerid, 100);
}

Būtinai gale callback'o, prieš pat return!

Matau pasistengei, paieškojai nenaudingos pamokos... Man reikia GangZone pasidaryti o ne DM zona... Man reikia paprastesnio būdo gauti kordinatėms...

Isisaugojai su /save gangzone koordinates nueini į ...\My Dokument\GTA San Andreas User Files\SAMP\savedpositions.txt pasiemi koordinate savo padaryta aš kaip pavizdi paimiau

AddPlayerClass(71,-2396.5811,1132.3090,55.7333,349.7238,0,0,0,0,0,0); // gangzone

ir išsimi koordinates kurias pažymėjau raudonai:

AddPlayerClass(71,-2396.5811,1132.3090,55.7333,349.7238,0,0,0,0,0,0); // gangzone

ir turi koordinates,o gangzone jei nori pasidaryti pažiek pamoka aš tik parodžiau kaip koordinates išgauti.

Svečias
Isisaugojai su /save gangzone koordinates nueini į ...\My Dokument\GTA San Andreas User Files\SAMP\savedpositions.txt pasiemi koordinate savo padaryta aš kaip pavizdi paimiau

AddPlayerClass(71,-2396.5811,1132.3090,55.7333,349.7238,0,0,0,0,0,0); // gangzone

ir išsimi koordinates kurias pažymėjau raudonai:

AddPlayerClass(71,-2396.5811,1132.3090,55.7333,349.7238,0,0,0,0,0,0); // gangzone

ir turi koordinates,o gangzone jei nori pasidaryti pažiek pamoka aš tik parodžiau kaip koordinates išgauti.

Jūs nesuprantate ko man reikia, aš kordinates išsitraukti ir gauti su /save moku bet man reikia lengvesnio būdo, programos ar dar ko...

Svečias
manau kitokio dalyko nerasi...

Va man tokio FS reikia:

[youtubecom]

[/youtubecom]

O vėliau aš išsitraukčiau iš FS kordinates ir įsikelčiau į GM...

Pz.. iki kur nusiritom nebemokam FS įkelt

-Atsisiunti filterscripts.rar faila.

-įkeli atsiustus failus į filescripts

-eini į server.cfg ir prie visu filescript prirašai kas ten yra

-Eini testint ir fsio

Mat del taves pamoka padariau :mucha::mucha:

//-----------------------IntrozeN---------------------

//-----------------------Gangzone---------------------

//-----------------------Creator----------------------

//-----------------------v1.0-------------------------



#include 



#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

#define COLOR_GREENLIGHT 0x9ACD32AA

#define COLOR_DARKRED 0xC10B07FF



forward Createzone(playerid,color);



new Makingzone[MAX_PLAYERS];

new Float:ZMinX;

new Float:ZMaxX;

new Float:ZMinY;

new Float:ZMaxY;

new GangZone;

new Create;



public OnFilterScriptInit()

{

       print("\n----------------------------------");

       print("Gangzone Creator v1.0 by IntrozeN");

       print("----------------------------------\n");

       if(!fexist("/savedzones.txt")) fopen("/savedzones.txt", io_readwrite);

       return 1;

}



public OnFilterScriptExit()

{

       GangZoneHideForAll(GangZone);

       return 1;

}



public OnPlayerCommandText(playerid, cmdtext[])

{

       dcmd(zone,4,cmdtext);

       return 0;

}



public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

       if(dialogid == 0)

       {

           if(response)

           {

               if(listitem == 0)

               {

                               if(Makingzone[playerid] == 1) return SendClientMessage(playerid,COLOR_DARKRED,".: Info: You're already making a zone. Cancel or Save the current one first :.");

                       ShowPlayerDialog(playerid,1,2,"Color","Blue\nRed\nGreen\nPurple\nYellow\nGrey\nLightblue\nWhite\nBlack","Select","Cancel");

                       Makingzone[playerid] = 1;

                       }

                       if(listitem == 1)

                       {

                           if(Makingzone[playerid] == 0) return SendClientMessage(playerid,COLOR_DARKRED,".: Info: You're not making a zone. Create one first :.");

                           new string[128];

                               KillTimer(Create);

                               format(string,sizeof(string),"GangZoneCreate(%f,%f,%f,%f);\r\n",ZMinX,ZMinY,ZMaxX,ZMaxY);

                               new File:save = fopen("/savedzones.txt", io_append);

                               fwrite(save, string);

                               fclose(save);

                               SendClientMessage(playerid,COLOR_GREENLIGHT,".: Info: Zone created and saved in savedzones.txt :.");

                               Makingzone[playerid] = 0;

                       }

                       if(listitem == 2)

                       {

                           if(Makingzone[playerid] == 0) return SendClientMessage(playerid,COLOR_DARKRED,".: Info: You're not making a zone. Create one first :.");

                               KillTimer(Create);

                               GangZoneDestroy(GangZone);

                               SendClientMessage(playerid,COLOR_GREENLIGHT,".: Info: Zone creation cancelled :.");

                               Makingzone[playerid] = 0;

                       }

               }

       }

       if(dialogid == 1)

       {

           if(response)

           {

               if(listitem == 0)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0x0000FFAA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 1)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0xFF0000AA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 2)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0x00FF00AA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 3)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0xFF00FFAA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 4)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0xFFFF00AA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

                       if(listitem == 5)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0x888888AA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 6)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0x00FFFFAA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 7)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0xFFFFFFAA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 8)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0x000000AA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

                       SendClientMessage(playerid,COLOR_GREENLIGHT,".: Info: Zone is being created :.");

                       SendClientMessage(playerid,COLOR_GREENLIGHT,".: Info: Check on the minimap while moving to create your zone perfectly then save the zone by typing /zone :.");

               }

               else if(!response)

               {

                   Makingzone[playerid] = 0;

               }

       }

       return 1;

}



public Createzone(playerid,color)

{

       GangZoneHideForPlayer(playerid,GangZone);

       GangZoneDestroy(GangZone);

       new Float:Z;

       GetPlayerPos(playerid,ZMaxX,ZMaxY,Z);

       GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

       GangZoneShowForPlayer(playerid,GangZone,color);

       return 1;

}



dcmd_zone(playerid,params[])

{

       #pragma unused params

       ShowPlayerDialog(playerid,0,2,"Gangzone Creator v1.0 by IntrozeN","Createzone\nSavezone\nCancelzone","Select","Cancel");

       return 1;

}

Šita visa į nauja .pwn sucomplitini gaubi .amx ir .pwn ir sukeli kaip sakiau...

Svečias
Pz.. iki kur nusiritom nebemokam FS įkelt
-Atsisiunti filterscripts.rar faila.

-įkeli atsiustus failus į filescripts

-eini į server.cfg ir prie visu filescript prirašai kas ten yra

-Eini testint ir fsio

Mat del taves pamoka padariau :mucha::mucha:

//-----------------------IntrozeN---------------------

//-----------------------Gangzone---------------------

//-----------------------Creator----------------------

//-----------------------v1.0-------------------------



#include 



#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

#define COLOR_GREENLIGHT 0x9ACD32AA

#define COLOR_DARKRED 0xC10B07FF



forward Createzone(playerid,color);



new Makingzone[MAX_PLAYERS];

new Float:ZMinX;

new Float:ZMaxX;

new Float:ZMinY;

new Float:ZMaxY;

new GangZone;

new Create;



public OnFilterScriptInit()

{

       print("\n----------------------------------");

       print("Gangzone Creator v1.0 by IntrozeN");

       print("----------------------------------\n");

       if(!fexist("/savedzones.txt")) fopen("/savedzones.txt", io_readwrite);

       return 1;

}



public OnFilterScriptExit()

{

       GangZoneHideForAll(GangZone);

       return 1;

}



public OnPlayerCommandText(playerid, cmdtext[])

{

       dcmd(zone,4,cmdtext);

       return 0;

}



public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

       if(dialogid == 0)

       {

           if(response)

           {

               if(listitem == 0)

               {

                               if(Makingzone[playerid] == 1) return SendClientMessage(playerid,COLOR_DARKRED,".: Info: You're already making a zone. Cancel or Save the current one first :.");

                       ShowPlayerDialog(playerid,1,2,"Color","Blue\nRed\nGreen\nPurple\nYellow\nGrey\nLightblue\nWhite\nBlack","Select","Cancel");

                       Makingzone[playerid] = 1;

                       }

                       if(listitem == 1)

                       {

                           if(Makingzone[playerid] == 0) return SendClientMessage(playerid,COLOR_DARKRED,".: Info: You're not making a zone. Create one first :.");

                           new string[128];

                               KillTimer(Create);

                               format(string,sizeof(string),"GangZoneCreate(%f,%f,%f,%f);\r\n",ZMinX,ZMinY,ZMaxX,ZMaxY);

                               new File:save = fopen("/savedzones.txt", io_append);

                               fwrite(save, string);

                               fclose(save);

                               SendClientMessage(playerid,COLOR_GREENLIGHT,".: Info: Zone created and saved in savedzones.txt :.");

                               Makingzone[playerid] = 0;

                       }

                       if(listitem == 2)

                       {

                           if(Makingzone[playerid] == 0) return SendClientMessage(playerid,COLOR_DARKRED,".: Info: You're not making a zone. Create one first :.");

                               KillTimer(Create);

                               GangZoneDestroy(GangZone);

                               SendClientMessage(playerid,COLOR_GREENLIGHT,".: Info: Zone creation cancelled :.");

                               Makingzone[playerid] = 0;

                       }

               }

       }

       if(dialogid == 1)

       {

           if(response)

           {

               if(listitem == 0)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0x0000FFAA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 1)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0xFF0000AA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 2)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0x00FF00AA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 3)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0xFF00FFAA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 4)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0xFFFF00AA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

                       if(listitem == 5)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0x888888AA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 6)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0x00FFFFAA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 7)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0xFFFFFFAA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

           if(listitem == 8)

               {

                   new Float:Z;

                               new color;

                               GetPlayerPos(playerid,ZMinX,ZMinY,Z);

                               color = 0x000000AA;

                               GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

                               GangZoneShowForPlayer(playerid,GangZone,color);

                               Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);

                       }

                       SendClientMessage(playerid,COLOR_GREENLIGHT,".: Info: Zone is being created :.");

                       SendClientMessage(playerid,COLOR_GREENLIGHT,".: Info: Check on the minimap while moving to create your zone perfectly then save the zone by typing /zone :.");

               }

               else if(!response)

               {

                   Makingzone[playerid] = 0;

               }

       }

       return 1;

}



public Createzone(playerid,color)

{

       GangZoneHideForPlayer(playerid,GangZone);

       GangZoneDestroy(GangZone);

       new Float:Z;

       GetPlayerPos(playerid,ZMaxX,ZMaxY,Z);

       GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);

       GangZoneShowForPlayer(playerid,GangZone,color);

       return 1;

}



dcmd_zone(playerid,params[])

{

       #pragma unused params

       ShowPlayerDialog(playerid,0,2,"Gangzone Creator v1.0 by IntrozeN","Createzone\nSavezone\nCancelzone","Select","Cancel");

       return 1;

}

Šita visa į nauja .pwn sucomplitini gaubi .amx ir .pwn ir sukeli kaip sakiau...

Kas sakė kad nemoku įkelti ar padaryti FS? Tiesiog errorus kelis išmetė o aš tingėjau taisyti... Ir be to, po to kai į kėliau video atsiuntei nuoroda kuria radai per 6sec, tai kodėl iš karto jos negalėjai rasti? Man reikėjo ja rasti, pasiimti video, įdėti čia ir sulaukti kol tu man ja vėl duosi... :D Na nesvarbu ačiū kad pasistengei, duosiu +R3P

-- Papildyta --

Va errorai...

C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(93) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(99) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(107) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(129) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(157) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(171) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(177) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(197) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(217) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(237) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(251) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(257) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(271) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(277) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(297) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(317) : warning 217: loose indentation
C:\Documents and Settings\admin\Desktop\*\gamemodes\GangZone Creator.pwn(331) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


17 Warnings.

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 5298 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Prisijungti prie diskusijos

Palikti atsakymą galite iš karto, o užsiregistruoti vėliau. Jeigu jau turite paskyrą mūsų forume, Prisijunkite.

Svečias
Atsakyti šioje temoje...

×   Įklijuotas tekstas turi teksto formatavimą.   Pašalinti teksto formatavimą

  Galimi tik 75 veidukai.

×   Nuoroda buvo automatiškai įterpta.   Įterpti nuorodą paprastai

×   Jūsų ankstesnis pranešimas buvo atkurtas.   Išvalyti redaktorių

×   Jūs negalite įkelti nuotraukas tiesiogiai.Įkelkite arba įdėkite nuotraukas iš URL.

  • Šiame puslapyje naršo:   0 nariai

    • Nėra registruotų narių peržiūrinčių šį forumą.

Skelbimai


×
×
  • Sukurti naują...