Üdv, szeretném publikálni e kis Minigame játékot aminek az a lényege h 1 ketrecben kell küzdened.
Parancsok:
/ketrecharc - Belépéshez
/leaveketrecharc - Kilépéshez
Készitõ: Kah (én).
Készítési idõ : 10 -15 perc
Kép: Majd csinálok.
#define FILTERSCRIPT
#include <a_samp>
#include zcmd
#include streamer
#include foreach
new KetrecharcPlayer,szFormat[128];
stock pName(playerid)
{
new name[24];
GetPlayerName(playerid,name,24);
return 1;
}
new
Float: Ketrecharc[5] [ 3 ] =
{
{1781.3491,-1125.8851,84.4766},
{1762.2209,-1133.2292,84.4766},
{1766.0913,-1101.9080,84.4766},
{1800.4331,-1103.5604,84.4766},
{1800.6357,-1134.5834,84.4766}
};
//==============Színek
#define COLOR_GREY 0x375FFFFF
#define COLOR_GREEN 0x33FF33AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFF9900AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x33CCFFAA //0x6495EDFF
#define COLOR_DARKBLUE 0x375FFFFF
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BASIC 0x0066FFAA
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_GREENYELLOW 0xADFF2FFF
#define COLOR_FLBLUE 0x6495EDAA
#define COLOR_BLACK 0x000000AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIME 0x99FF00AA
#define COLOR_DARKGREEN 0x33AA33AA
#define COLOR_BROWN 0x66330089
#define COLOR_STEELBLUE 0xB0C4DEFF
#define COLOR_LIGHTGREEN 0x00FF7FFF
#define Color 0x03D687FF
public OnFilterScriptInit()
{
CreateDynamicObject(14789,3352.48315430,-1031.52368164,89.66134644,0.00000000,0.00000000,179.75000000); //
CreateDynamicObject(14780,3338.68627930,-1021.12243652,86.26876831,0.00000000,0.00000000,0.00000000); //
CreateDynamicObject(14781,3338.23242188,-1020.65747070,88.74340820,0.00000000,180.00000000,180.00000000); //
CreateDynamicObject(3452,3350.41381836,-1017.24255371,92.17182922,0.00000000,0.00000000,90.00000000); //
CreateDynamicObject(3452,3342.87280273,-1033.02087402,92.17182922,0.00000000,0.00000000,0.00000000); //
CreateDynamicObject(3452,3326.95996094,-1022.96899414,92.17182922,0.00000000,0.00000000,270.00000000); //
CreateDynamicObject(3452,3336.23095703,-1009.18249512,92.17182922,0.00000000,0.00000000,180.00000000); //
CreateDynamicObject(974,3338.92724609,-1023.98406982,87.92603302,0.00000000,0.00000000,0.00000000); //
CreateDynamicObject(974,3338.97387695,-1018.23492432,87.92603302,0.00000000,0.00000000,0.00000000); //
CreateDynamicObject(974,3335.98754883,-1021.05908203,87.92604828,0.00000000,0.00000000,90.00000000); //
CreateDynamicObject(974,3341.35107422,-1021.13061523,87.95108032,0.00000000,0.00000000,90.00000000); //
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,-1,\"Ketrecharc Minigame, müködik a szerveren, ha ki akarod próbálni akkor használd a /ketrecharc parancsot a belépéshez!\");
SendClientMessage(playerid,-1,\"Készitõ: Kah\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
if( GetPVarInt( playerid, \"Ketrecharc\" ) == 1 )
{
cmd_leaveketrecharc( playerid );
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if( GetPVarInt( playerid, \"Ketrecharc\" ) == 1 )
{
KetrecharcPlayer--;
SetPVarInt( playerid, \"Ketrecharc\", 0 );
format( szFormat, sizeof( szFormat ), \"%s(%d) Kiesett a Ketrecharcból, mivel meghalt. Jelenleg %d játékos tartózkodik bent.\",pName( playerid ), playerid, KetrecharcPlayer );
SendClientMessageToAll( COLOR_LIME, szFormat );
if( KetrecharcPlayer == 1 )
{
foreach(Player, i)
{
if( GetPVarInt( i, \"Ketrecharc\" ) == 1 )
{
format( szFormat, sizeof( szFormat ), \"%s(%d) Megnyerte a ketrecharcot, Nyereménye $5000, + 5pont.\",pName( i ), i );
SendClientMessageToAll( COLOR_LIME, szFormat );
SetPVarInt( i, \"Ketrecharc\", 0 );
GivePlayerMoney( i, 5000 );
SetPlayerScore( i, GetPlayerScore( i ) + 5 );
SpawnPlayer( i );
SetPlayerHealth(i,100);
}
}
}
}
return 1;
}
CMD:ketrecharc( playerid, params[] )
{
KetrecharcPlayer++;
format( szFormat, sizeof( szFormat ), \"%s(%d) Belépett a Ketrec harc ketrecbe. Jelenleg, %d játékos van bent.\",pName( playerid ), playerid, KetrecharcPlayer );
SendClientMessageToAll( COLOR_LIME, szFormat );
new
rand = random( sizeof ( Ketrecharc ) );
SetPlayerPos( playerid, Ketrecharc[ rand ] [ 0 ], Ketrecharc[ rand ] [ 1 ], Ketrecharc[ rand ] [ 2 ] );
SendClientMessage(playerid,COLOR_RED,\"Sok Sikert! Tarold le a többieket!\");
ResetPlayerWeapons( playerid );
SetPVarInt( playerid, \"Ketrecharc\", 1 );
SetPVarInt(playerid,\"SuperJump\",0);
SetPlayerHealth(playerid,25);
SetPlayerFightingStyle(playerid,FIGHT_STYLE_BOXING);
return 1;
}
CMD:leaveketrecharc( playerid )
{
KetrecharcPlayer--;
format( szFormat, sizeof( szFormat ), \" %s(%d) Kilépett a Ketrec harcbõl. Jelenleg, %d játékos van bent.\",pName( playerid ), playerid, KetrecharcPlayer );
SendClientMessageToAll( COLOR_LIME, szFormat );
SpawnPlayer( playerid );
if( IsPlayerInAnyVehicle( playerid ) )
{
DestroyVehicle( GetPlayerVehicleID( playerid ) );
}
ResetPlayerWeapons( playerid );
SetPVarInt( playerid, \"Ketrecharc\", 0 );
return 1;
}