Jump to content

Box Script


AvestX

Recommended Posts

Box Script


Tvůrce: [sNGM]Avest_X (nebo [sNGM]Lamka_CZE)

Používání:Stačí si stoupnout na pickup, a kliknout v dialogu na Vztoupit.

Pak už by to mělo vyřídit za vás.

Kde se to nachází: Ganton LS Tělocvična.


Download: http://www.our-life.xf.cz/box.amx


Nezkoušeno !

Link to comment
Share on other sites

Tady máte PWN xD

 

/*

================================================================================

|| - Boxing Script - ||

================================================================================

*/

 

 

#include

//-----[ Defines ]--|

#define cervena 0xff0000FF

//-----[ News ]-----|

new BoxPick;

new BoxPocet;

new Boxi[MAX_PLAYERS];

//******************************************************************************

stock Jmeno(playerid)

{

new pName[MAX_PLAYER_NAME];

 

if(IsPlayerConnected(playerid))

{

if(!IsPlayerNPC(playerid))

{

GetPlayerName(playerid, pName, sizeof(pName));

}

}

return pName;

}

 

public OnFilterScriptInit()

{

print("*****************************************");

print("* BOXING SCRIPT BY AVEST-X *");

print("*****************************************");

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

BoxPick = CreatePickup(1239,1,765.6077,7.9590,1000.7136);

return 1;

}

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

public OnFilterScriptExit()

{

return 1;

}

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

public OnPlayerDeath(playerid, killerid, reason)

{

if(Boxi[playerid] && Boxi[killerid] == 1)

{

new string[150];

Boxi[playerid] = 0;

Boxi[killerid] = 0;

BoxPocet = 0;

SetPlayerPos(killerid, 765.6077,7.9590,1000.7136);

SetPlayerInterior(killerid, 5);

GivePlayerMoney(killerid, 4000);

for(new p=0; p

{

if(IsPlayerConnected(p))

{

format(string, sizeof(string), "[ ++ ]: Hráč %s nad hráčem %s vyhrál v boxu, a byl odměněn !", Jmeno(killerid), Jmeno(playerid));

SendClientMessage(p, cervena, string);

}

}

}

return 1;

}

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

public OnPlayerPickUpPickup(playerid, pickupid)

{

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

if(pickupid == BoxPick)

{

ShowPlayerDialog(playerid,1500,DIALOG_STYLE_MSGBOX,"Boxing","Chceš si dát box, pokud ano\nstiskni připojit, ale box jde hrát pouze ve 2 !","Připojit","Nic");

}

return 1;

}

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

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

{

if(dialogid == 1500)

{

if(response == 1)

{

BoxPocet ++;

if(BoxPocet == 1)

{

SetPlayerPos(playerid, 758.4374,13.2256,1001.1639);

TogglePlayerControllable(playerid, 0);

}

else if(BoxPocet == 2)

{

SetPlayerPos(playerid, 763.2513,9.0098,1001.1639);

for(new p=0; p< BoxPocet; p++)

{

if(IsPlayerConnected(p))

{

TogglePlayerControllable(p, 1);

SendClientMessage(p, cervena, "[ ++ ]: Box začal !");

Boxi[p] = 1;

}

}

}

}

}

return 1;

}

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

 

Link to comment
Share on other sites

Ach ta čeština :d nemelo by to bejt místo např

[ ++ ]: Hráč Roox nad hráčem Avest-x vyhrál v boxu, a byl odměněn !

je divny ja bych napsal toto :d

[ ++ ]: Hráč Roox vyhrál v boxu nad hráčem Avest-x a byl odměněn !

A je to i kradsi :d A jinak de to 5/10 :klidek: Myslim ze by to dokazal udelat snad i kazdej, ale zas kazdyho to nenapadne :d

Link to comment
Share on other sites

  • 2 years later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...