Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
Üzenetek - [RC]Farkas
1
« Dátum: 2013. február 21. - 18:18:31 »
Helló Készitettem egy minigame scriptet 2 minigame van benne MTA Derby és Monster Sumo. Parancsok: /minigames /minigame /minigame2 /exitminigame Remélem tetszik és valahányatoknak jol jön #include <a_samp> #include <foreach> #include <zcmd> #include <fixchars> #pragma tabsize 0 new SUMO[MAX_PLAYERS]; new SUMOCAR2[MAX_PLAYERS]; new SumoStarted; new SumoSpawn; new Roman[MAX_PLAYERS]; new SumoCar[MAX_PLAYERS]; new SumoTimer; new SumoSec; new SumoPlayers; new InSumo[MAX_PLAYERS]; new DM[MAX_PLAYERS]; new Float:SumoSpawn2 [][4] = { {5016.9028,-1818.4657,5.7785,178.5417}, {5016.6494,-1817.9543,5.7785,179.8417}, {5094.6938,-1818.4242,5.6285,178.5884}, {5093.2153,-1851.8483,5.6285,88.6609}, {5055.3389,-1887.9875,5.3785,359.0468} }; new Float:SumoSpawn3 [][4] = { {3611.4419,-1796.7487,13.3359,40.5142}, {3622.7029,-1775.6836,13.3434,80.8424}, {3622.0593,-1757.4803,13.3377,109.8828}, {3608.5742,-1740.2909,13.3358,151.9021}, {3584.3894,-1733.7529,13.3359,191.9472}, {3560.3035,-1746.6589,13.3377,235.4297}, {3552.6279,-1776.4774,13.3359,293.5663}, {3575.1228,-1803.0439,13.3359,343.7377}, {3601.8369,-1802.9872,13.3359,21.4596}, {3623.1221,-1776.4288,13.3429,77.0532} }; #define ScoreWin 25 #define CashWin random(50000)+1000 #define red 0xFF0000AA public OnPlayerDisconnect(playerid, reason) { SUMO[playerid]=0; if(InSumo[playerid] == 1) { DestroyVehicle(SumoCar[playerid]); SumoPlayers--; InSumo[playerid] = 0; DM[playerid] = 0; if(Roman[playerid] == 0) { new str[128]; format(str,sizeof(str),\"%s Kiesete a Minigameböl Mert kilépet a szerorol\",pName(playerid)); SendClientMessageToAll(0xFB0000FF,str); SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); SetPlayerVirtualWorld(playerid,0); } if(SumoPlayers == 1) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { if(Roman[playerid] == 0) { new str[128]; format(str,sizeof(str),\"%s Megnyerte a Minigamet Nyereménye:%d\",pName(i),CashWin); SendClientMessageToAll(0x0FFDD349,str); } GivePlayerMoney(i,CashWin); SumoPlayers--; InSumo[playerid] = 0; SUMO[playerid]=0; SumoPlayers = 0; SumoStarted = 0; DM[playerid] = 0; SetPlayerVirtualWorld(playerid,0); SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); InSumo = 0; SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); SetPlayerVirtualWorld(playerid,0); } } } } return 1; } public OnPlayerDeath(playerid, killerid, reason) { if(InSumo[playerid] == 1) { DestroyVehicle(SumoCar[playerid]); SumoPlayers--; InSumo[playerid] = 0; DM[playerid] = 0; if(Roman[playerid] == 0) { new str[128]; format(str,sizeof(str),\"%s Kieste a Minigameböl\",pName(playerid)); SendClientMessageToAll(0xFB0000FF,str); SetPlayerVirtualWorld(playerid,0); SpawnPlayer(playerid); } if(SumoPlayers == 1) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { if(Roman[playerid] == 0) { new str[128]; format(str,sizeof(str),\"%s Megnyerte a Minigamet Nyereménye:%d\",pName(i),CashWin); SendClientMessageToAll(0x0FFDD349,str); } GivePlayerMoney(i,CashWin); SumoPlayers = 0; InSumo[playerid] = 0; SumoStarted = 0; SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); SetPlayerVirtualWorld(playerid,0); DM[playerid] = 0; new Float:x,Float:y,Float:z; GetPlayerPos(i,x,y,z); SetPlayerPos(i,x,y,z+1); DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); TogglePlayerControllable(i,1); InSumo = 0; SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); SetPlayerVirtualWorld(playerid,0); } } } } return 1; } public OnPlayerSpawn(playerid) { InSumo[playerid] =0; if(SUMO[playerid]==1) { PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); } return 1; } forward SumoRandomCar(playerid); public SumoRandomCar(playerid) { new pRandom = random(sizeof(SumoSpawn2)); new vRandom = random(5); switch (vRandom) { case 0: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999);} case 1: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999);} case 2: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999);} case 3: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999);} case 4: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999);} } return SUMOCAR2[playerid]; } forward SumoRandomCar2(playerid); public SumoRandomCar2(playerid) { new pRandom = random(sizeof(SumoSpawn3)); new vRandom = random(5); switch (vRandom) { case 0: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = CreateVehicle(556,SumoSpawn3[pRandom][0], SumoSpawn3[pRandom][1], SumoSpawn3[pRandom][2], SumoSpawn3[pRandom][3],-1,-1,9999999);} case 1: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = CreateVehicle(556,SumoSpawn3[pRandom][0], SumoSpawn3[pRandom][1], SumoSpawn3[pRandom][2], SumoSpawn3[pRandom][3],-1,-1,9999999);} case 2: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = CreateVehicle(556,SumoSpawn3[pRandom][0], SumoSpawn3[pRandom][1], SumoSpawn3[pRandom][2], SumoSpawn3[pRandom][3],-1,-1,9999999);} case 3: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = CreateVehicle(556,SumoSpawn3[pRandom][0], SumoSpawn3[pRandom][1], SumoSpawn3[pRandom][2], SumoSpawn3[pRandom][3],-1,-1,9999999);} case 4: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = CreateVehicle(556,SumoSpawn3[pRandom][0], SumoSpawn3[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn3[pRandom][3],-1,-1,9999999);} } return SUMOCAR2[playerid]; } public OnPlayerUpdate(playerid) { if(InSumo[playerid]==1) { new Float:x,Float:y,Float:z; if(GetPlayerPos(playerid,x,y,z) && z < -1.0) { RemovePlayerFromVehicle(playerid); SUMO[playerid]=0; if(InSumo[playerid] == 1) { DestroyVehicle(SumoCar[playerid]); SumoPlayers--; InSumo[playerid] = 0; DM[playerid] = 0; if(Roman[playerid] == 0) { new str[128]; format(str,sizeof(str),\"%s Kieset a Minigameböl\",pName(playerid)); SendClientMessageToAll(0xFB0000FF,str); SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); SetPlayerVirtualWorld(playerid,0); } if(SumoPlayers == 1) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { if(Roman[playerid] == 0) { new str[128]; format(str,sizeof(str),\"%s Megnyerte a Minigamet Nyereménye:%d\",pName(i),CashWin); SendClientMessageToAll(0x0FFDD349,str); } GivePlayerMoney(i,CashWin); SumoPlayers = 0; SumoStarted = 0; DM[playerid] = 0; SetPlayerVirtualWorld(playerid,0); DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); InSumo = 0; SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); SetPlayerVirtualWorld(playerid,0); } } } } return 1; } } return true; } CMD:minigame(playerid,params[]) { if(InSumo[playerid] == 0) { if(SumoStarted == 0) { if(Roman[playerid] == 0) { SendClientMessageToAll(0xFFFF00AA,\"Minigame játék elindult! Csatlakozásért használad {ff0000}/minigame!\"); } GetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]); SumoStarted=1; InSumo[playerid] = 1; SumoSpawn=2; SumoTimer = SetTimer(\"StartSumo\",1000,1); SumoSec = 30; TogglePlayerControllable(playerid,0); PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); SumoPlayers = 1; DM[playerid] = 1; }else if(SumoStarted == 1) { SumoPlayers++; if(SumoSpawn == 2) { SumoSpawn=3; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 3) { SumoSpawn=4; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 4) { SumoSpawn=5; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 5) { SumoSpawn=6; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 6) { SumoSpawn=7; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 7) { SumoSpawn=8; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == { SumoSpawn=9; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 9) { SumoSpawn=10; KillTimer(SumoTimer); PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; SumoStarted = 2; SendClientMessageToAll(0xAA3333AA,\"{cccccc}Kiestél a játéból! {3399ff}Car Sumo Minigame {cccccc}elíndult!\"); for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { TogglePlayerControllable(i,1); GameTextForPlayer(i,\"~r~~h~Kiestél!\",3000,3); SetTimerEx(\"Eliminat\",500,0,\"i\",i); return 1; } return 1; } } }else SendClientMessage(playerid,0xAA3333AA,\"{3399ff}A Minigame {cccccc}már elindult!\"); new str[128]; format(str,sizeof(str),\"%s Csatlakozot a mingamehoz Belépéshez:[/minigame]\",pName(playerid)); SendClientMessageToAll(0x0FFDD349,str); }else SendClientMessage(playerid,0xAA3333AA,\"{cccccc}Már benne vagy a {3399ff}Minigameban kilépéshez /exitminigame!\"); return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(InSumo[playerid] == 1) { PutPlayerInVehicle(playerid,SumoCar[playerid],0); } return 1; } forward StartSumo(playerid); public StartSumo(playerid) { if(SumoSec > 1) { new time; new strec[128]; SumoSec--; time = (SumoSec); format(strec, sizeof(strec), \"~h~~r~Minigame Kezdés\\n %d\", time); for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { GameTextForPlayer(i, strec, 3000, 3); } } } if(SumoSec == 1) { SumoSec = 0; if(SumoPlayers >= 2) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { GameTextForPlayer(i, \"~r~>>>START<<<\", 3000, 3); KillTimer(SumoTimer); TogglePlayerControllable(i,1); SumoStarted=2; SetTimerEx(\"Eliminat\",500,0,\"i\",i); } } }else if(SumoPlayers < 2) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { new Float:x,Float:y,Float:z; GetPlayerPos(i,x,y,z); SetPlayerPos(i,x,y,z+1); DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); KillTimer(SumoTimer); InSumo =0; TogglePlayerControllable(i,1); } } SumoStarted=0; if(Roman[playerid] == 0) { SendClientMessageToAll(0xFB0000FF,\"A Derby Minigame befejezdõdõtt! Indok: Legalább 2 játékos szûkséges!\"); DM[playerid] = 0; SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); } } } return 1; } CMD:exitminigame(playerid,params[]) { if(DM[playerid] == 0) return SendClientMessage(playerid,0xFB0000FF,\"Nem vagy Minigameban!\"); DM[playerid] = 0; SetPlayerVirtualWorld(playerid,0); for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { new Float:x,Float:y,Float:z; GetPlayerPos(i,x,y,z); SetPlayerPos(i,x,y,z+1); DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); KillTimer(SumoTimer); InSumo =0; TogglePlayerControllable(i,1); } } SumoStarted=0; DM[playerid] = 0; SUMO[playerid]=0; SetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]); SetPlayerVirtualWorld(playerid,0); return SendClientMessage(playerid,0xFFFF00AA,\"Kiléptél a Minigamebõl.\"); } CMD:minigames(playerid,params[]) { ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST,\"Minigamek\",\"MTA Derby\\nMonster Sumo\",\"Kiválaszt\",\"Mégse\"); return 1; } CMD:minigame2(playerid,params[]) { if(InSumo[playerid] == 0) { if(SumoStarted == 0) { if(Roman[playerid] == 0) { SendClientMessageToAll(0xFFFF00AA,\"Minigame2 játék elindult! Csatlakozásért használad {ff0000}/minigame2!\"); } GetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]); SumoStarted=1; InSumo[playerid] = 1; SumoSpawn=3; SumoTimer = SetTimer(\"StartSumo\",1000,1); SumoSec = 30; TogglePlayerControllable(playerid,0); PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0); SumoPlayers = 1; DM[playerid] = 1; }else if(SumoStarted == 1) { SumoPlayers++; if(SumoSpawn == 3) { SumoSpawn=3; PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 3) { SumoSpawn=4; PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 4) { SumoSpawn=5; PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 5) { SumoSpawn=6; PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 6) { SumoSpawn=7; PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 7) { SumoSpawn=8; PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == { SumoSpawn=9; PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 9) { SumoSpawn=10; KillTimer(SumoTimer); PutPlayerInVehicle(playerid,SumoRandomCar2(playerid),0); InSumo[playerid] = 1; SumoStarted = 2; SendClientMessageToAll(0xAA3333AA,\"{cccccc}Kiestél a játéból! {3399ff}Car Sumo Minigame {cccccc}elíndult!\"); for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { TogglePlayerControllable(i,1); GameTextForPlayer(i,\"~r~~h~Kiestél!\",3000,3); SetTimerEx(\"Eliminat\",500,0,\"i\",i); return 1; } return 1; } } }else SendClientMessage(playerid,0xFB0000FF,\"A Minigame már elindult!\"); new str[128]; format(str,sizeof(str),\"%s Csatlakozot a mingame2 játékhoz Belépéshez:[/minigame2]\",pName(playerid)); SendClientMessageToAll(0x0FFDD349,str); }else SendClientMessage(playerid,0xFB0000FF,\"Már benne vagy a Minigameban kilépéshez /exitminigame!\"); return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { if(InSumo[playerid] == 1) { DestroyVehicle(SumoCar[playerid]); SumoPlayers--; InSumo[playerid] = 0; DM[playerid] = 0; if(Roman[playerid] == 0) { new str[128]; format(str,sizeof(str),\"%s Kieste a Minigameböl\",pName(playerid)); SendClientMessageToAll(0xFB0000FF,str); SetPlayerVirtualWorld(playerid,0); SpawnPlayer(playerid); } if(SumoPlayers == 1) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { if(Roman[playerid] == 0) { new str[128]; format(str,sizeof(str),\"%s Megnyerte a Minigamet Nyereménye:%d\",pName(i),CashWin); SendClientMessageToAll(0x0FFDD349,str); } GivePlayerMoney(i,CashWin); SumoPlayers = 0; InSumo[playerid] = 0; SumoStarted = 0; SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); SetPlayerVirtualWorld(playerid,0); DM[playerid] = 0; new Float:x,Float:y,Float:z; GetPlayerPos(i,x,y,z); SetPlayerPos(i,x,y,z+1); DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); TogglePlayerControllable(i,1); InSumo = 0; SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); SetPlayerVirtualWorld(playerid,0); } } } } return 1; }
Obijectek //minigame MTA Derby CreateDynamicObject(8558, 5037.4438476563, -1851.853515625, 3, 0, 0, 0); CreateDynamicObject(8558, 5076.2490234375, -1851.8591308594, 3.0499987602234, 0, 0, 0); CreateDynamicObject(8558, 5094.4311523438, -1834.2766113281, 3.0999975204468, 0, 0, 90); CreateDynamicObject(8558, 5073.1772460938, -1816.7080078125, 3, 0, 0, 0); CreateDynamicObject(8558, 5055.4682617188, -1834.2864990234, 3.0499987602234, 0, 0, 90); CreateDynamicObject(8558, 5034.5546875, -1816.6857910156, 3.25, 0, 0, 0); CreateDynamicObject(8558, 5016.962890625, -1834.2069091797, 3.25, 0, 0, 90); CreateDynamicObject(8558, 5016.6938476563, -1869.8442382813, 3.0499987602234, 0, 0, 90); CreateDynamicObject(8558, 5055.4145507813, -1873.3316650391, 2.8499975204468, 0, 0, 90); CreateDynamicObject(8558, 5034.2197265625, -1891.0266113281, 2.8999962806702, 0, 0, 0); CreateDynamicObject(8558, 5066.9345703125, -1875.7468261719, 2.75, 0, 0, 56); CreateDynamicObject(8558, 5073.2255859375, -1866.0450439453, 2.7999987602234, 0, 0, 55.997314453125); CreateDynamicObject(8558, 5034.4545898438, -1834.7785644531, 9.7424268722534, 0, 340, 180); CreateDynamicObject(8558, 5013.6694335938, -1836.5760498047, 16.466381072998, 0, 0, 90); CreateDynamicObject(8558, 5013.4560546875, -1887.6351318359, 21.016380310059, 0, 0, 90); CreateDynamicObject(1634, 5013.6518554688, -1856.9860839844, 19.292156219482, 0, 0, 180); CreateDynamicObject(8558, 5031.1884765625, -1818.7486572266, 16.516380310059, 0, 0, 0); CreateDynamicObject(8558, 5058.7758789063, -1834.7280273438, 16.566379547119, 0, 0, 300); CreateDynamicObject(8558, 5067.525390625, -1850.7005615234, 16.61637878418, 0, 0, 0); CreateDynamicObject(8558, 5031.0244140625, -1850.6580810547, 16.519998550415, 0, 0, 0); CreateDynamicObject(8558, 5085.4384765625, -1833.0473632813, 16.66637802124, 0, 0, 90); CreateDynamicObject(8558, 5067.9409179688, -1817.3812255859, 16.466377258301, 0, 0, 188); CreateDynamicObject(8558, 5029.873046875, -1836.3991699219, 16.566379547119, 0, 0, 90); CreateDynamicObject(8558, 5029.89453125, -1871.9643554688, 16.61637878418, 0, 0, 90); CreateDynamicObject(8558, 5047.4409179688, -1889.4437255859, 16.66637802124, 0, 0, 180); CreateDynamicObject(8558, 5064.5258789063, -1871.6862792969, 16.716377258301, 0, 0, 271.99450683594); //minigame Monster Sumo CreateDynamicObject(13634, 3584.3000488281, -1769.6999511719, 15.89999961853, 0, 0, 0); CreateDynamicObject(16668, 2700.3000488281, -1803.5, -18.39999961853, 0, 0, 0); CreateDynamicObject(16668, 2700.5, -1709.9000244141, -19.200000762939, 0, 0, 270); CreateDynamicObject(16668, 3645.3000488281, -1719.8000488281, 1.1000000238419, 0, 0, 175.99450683594); CreateDynamicObject(16668, 2788, -1804.1999511719, -19.200000762939, 0, 0, 89.994506835938); CreateDynamicObject(7191, 3515, -1837.8000488281, 2.4000000953674, 0, 0, 235.99487304688); CreateDynamicObject(7191, 2678.6999511719, -1682.6999511719, -17.700000762939, 0, 0, 113.99490356445); CreateDynamicObject(7191, 2804.3000488281, -1833.0999755859, -17.5, 0, 0, 289.994140625); CreateDynamicObject(13607, 3588.1000976563, -1768.5999755859, 5.8000001907349, 0, 0, 0); CreateDynamicObject(13607, 3588.1000976563, -1768.8000488281, 8.3000001907349, 0, 0, 0); CreateDynamicObject(13607, 3588, -1769.1999511719, 10.300000190735, 0, 0, 0); CreateDynamicObject(13607, 3587.8000488281, -1769.3000488281, 12.800000190735, 0, 0, 0); CreateDynamicObject(13607, 3587.6999511719, -1769.1999511719, 15.5, 0, 0, 0); CreateDynamicObject(16668, 3637.3000488281, -1826.0999755859, 1.7000000476837, 0, 0, 85.989990234375); CreateDynamicObject(16668, 3509.6999511719, -1816.0999755859, 1.5, 0, 0, 355.98999023438); CreateDynamicObject(16668, 3518, -1710.5, 1.2000000476837, 0, 0, 265.98449707031); CreateDynamicObject(7191, 3493.5, -1822.8000488281, 2.4000000953674, 0, 0, 235.99182128906); CreateDynamicObject(7191, 3502.8999023438, -1704.5, 2.4000000953674, 0, 0, 117.99182128906); CreateDynamicObject(7191, 3543.6999511719, -1688.1999511719, 1.8999999761581, 0, 0, 105.98767089844); CreateDynamicObject(7191, 3561.8000488281, -1684.0999755859, 2.2000000476837, 0, 0, 97.985107421875); CreateDynamicObject(7191, 3646.6999511719, -1695.6999511719, 2.2000000476837, 0, 0, 63.981567382813); CreateDynamicObject(7191, 3664.6999511719, -1704.5, 2, 0, 0, 63.978881835938); CreateDynamicObject(7191, 3648.6999511719, -1843.0999755859, 2.2000000476837, 0, 0, 289.97888183594); CreateDynamicObject(7191, 3621, -1851.1999511719, 2.0999999046326, 0, 0, 289.97863769531);
2
« Dátum: 2013. február 20. - 20:33:31 »
Thx téma megoldva
3
« Dátum: 2013. február 20. - 16:43:54 »
Hi Van egy minigáme scriptem és abba ugy kéne, hogyha a player minigámeben van és kiszál a kocsibol akor kiesen a mingameböl ezt, hogy lehet megcsinálni.
4
« Dátum: 2013. február 18. - 18:14:45 »
Mit a téma cime is az hogy a samp ben lehete ojan animáciot csinálni hogy pl beirja valaki, hogy /hanyas és a skinje hányni kezd
5
« Dátum: 2013. február 17. - 10:41:20 »
Ok THX értem Mindenkinek met a +
6
« Dátum: 2013. február 16. - 15:51:46 »
De sehogyse lehet megoldani zcmd vel ezt
7
« Dátum: 2013. február 15. - 22:08:57 »
Értem de az baj, hogy minden parancs elé oda kell irni ezt if( DM[ playerid ] == 1 ) return SendClientMessage( playerid, -1, \"Benne van egy DM -ben így nem használhatsz parancsokat!\"); mer ha a Dmt egy FS be csinálom akor ami más FS be van azt nem tiltja le csak azt ami abban az FS vagy gamemodban vann ahol a Dm is van És ezért jobb ez a megoldás de ez nem megy ZCMD-s parancs al }else if(dmid[playerid] != -1) return SendClientMessage(playerid,0xFFFF00AA,\"Nem használhatsz parancsokat DM-zónában elöbb lépj ki /exitdm\"); Ez minden parancsot letilt ami nem a dm FS-ében vann
8
« Dátum: 2013. február 15. - 13:34:04 »
ZCMD-vel, hogy kell Dm zonát késziteni ugy, hogy ne menyenek a parancsok benne én már probáltam igy: http://sampforum.hu/index.php?topic=23934.0 de nem jó. Aki tud segiteni az pls segitsen
9
« Dátum: 2013. február 10. - 17:35:33 »
ja az
10
« Dátum: 2013. február 10. - 16:10:25 »
Nos az a bajom, hogy ha van minigámeban 1 player és egy másik player is akar csatlakozni a minigámehoz akor öt nem teszi be minigámeba csak annak müködik aki elinditja a minigámet lehet hogy abban van a baj amit én beletete
11
« Dátum: 2013. február 10. - 13:38:00 »
Van nekem egy minigáme scriptem de nem és én átalakitotam de valamiért nem megy tökéletesen az akir beirja a /minigame parancsot azt beteszi a minigámeba de ha csatlakozni akar valaki a minigámebe akor azt vagy nem teszi be vagy be teszi de nem a pájára hanem a pája allá dobja vagyi bebugol ha 2 játékos akor csatlakozni a játékhoz #include <a_samp> #include <foreach> #include <fixchars> #pragma tabsize 0 new SUMO[MAX_PLAYERS]; new SUMOCAR2[MAX_PLAYERS]; new SumoStarted; new SumoSpawn; new Roman[MAX_PLAYERS]; new SumoCar[MAX_PLAYERS]; new SumoTimer; new SumoSec; new SumoPlayers; new InSumo[MAX_PLAYERS]; new Float:SumoSpawn2 [][4] = { {5016.9028,-1818.4657,5.7785,178.5417}, {5016.6494,-1817.9543,5.7785,179.8417}, {5094.6938,-1818.4242,5.6285,178.5884}, {5093.2153,-1851.8483,5.6285,88.6609}, {5055.3389,-1887.9875,5.3785,359.0468} }; static minid[MAX_PLAYERS]={ -1, ... }; #define ScoreWin 0 #define CashWin 50000 #define red 0xFF0000AA public OnPlayerConnect(playerid) { InSumo[playerid] =0; SUMO[playerid]=0; minid[playerid] = -1; return 1; } public OnPlayerDisconnect(playerid, reason) { SUMO[playerid]=0; if(InSumo[playerid] == 1) { DestroyVehicle(SumoCar[playerid]); SumoPlayers--; InSumo[playerid] = 0; new string[1900]; if(Roman[playerid] == 0) if(SumoPlayers == 1) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { if(Roman[playerid] == 0) SendClientMessageToAll(red,string); SetPlayerScore(i,GetPlayerScore(i)+ScoreWin); GivePlayerMoney(i,CashWin); SumoPlayers--; InSumo[playerid] = 0; SUMO[playerid]=0; SumoPlayers = 0; SumoStarted = 0; DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); InSumo = 0; minid[playerid] = -1; } } } } return 1; } forward SumoRandomCar(playerid); public SumoRandomCar(playerid) { new pRandom = random(sizeof(SumoSpawn2)); new vRandom = random(5); switch (vRandom) { case 0: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = SetVehicleVirtualWorld( CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999),5);} case 1: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = SetVehicleVirtualWorld( CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999),5);} case 2: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = SetVehicleVirtualWorld( CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999),5);} case 3: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = SetVehicleVirtualWorld( CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999),5);} case 4: { DestroyVehicle(SUMOCAR2[playerid]); SUMOCAR2[playerid] = SetVehicleVirtualWorld( CreateVehicle(504,SumoSpawn2[pRandom][0], SumoSpawn2[pRandom][1], SumoSpawn2[pRandom][2], SumoSpawn2[pRandom][3],-1,-1,9999999),5);} } return SUMOCAR2[playerid]; } public OnPlayerUpdate(playerid) { if(InSumo[playerid]==1) { new Float:x,Float:y,Float:z; if(GetPlayerPos(playerid,x,y,z) && z < -1.0) { RemovePlayerFromVehicle(playerid); SUMO[playerid]=0; if(InSumo[playerid] == 1) { DestroyVehicle(SumoCar[playerid]); SumoPlayers--; InSumo[playerid] = 0; new string[128]; if(Roman[playerid] == 0) if(SumoPlayers == 1) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { if(Roman[playerid] == 0) { format(string, sizeof(string), \"%s Megnyerte a minigamet\", Name(i),ScoreWin,CashWin); SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); } SendClientMessageToAll(red,string); SetPlayerScore(i,GetPlayerScore(i)+ScoreWin); GivePlayerMoney(i,CashWin); SumoPlayers = 0; SumoStarted = 0; DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); InSumo = 0; SetPlayerVirtualWorld(playerid,0); minid[playerid] = -1; } } } } return 1; } } return true; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/minigame\", cmdtext, true, 10) == 0) { if(InSumo[playerid] == 0) { if(SumoStarted == 0) { if(Roman[playerid] == 0) { SendClientMessageToAll(0xFFFF00AA,\"Minigame játék elindult! Csatlakozásért használad {ff0000}/minigame!\"); } minid[playerid] = 0; SetPlayerVirtualWorld(playerid,5); SumoStarted=1; InSumo[playerid] = 1; SumoSpawn=2; SumoTimer = SetTimer(\"StartSumo\",600,1); SumoSec = 30; TogglePlayerControllable(playerid,0); PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); SumoPlayers = 1; }else if(SumoStarted == 1) { SumoPlayers++; if(SumoSpawn == 2) { SumoSpawn=3; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 3) { SumoSpawn=4; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 4) { SumoSpawn=5; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 5) { SumoSpawn=6; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 6) { SumoSpawn=7; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 7) { SumoSpawn=8; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == { SumoSpawn=9; PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; TogglePlayerControllable(playerid,0); }else if(SumoSpawn == 9) { SumoSpawn=10; KillTimer(SumoTimer); PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); InSumo[playerid] = 1; SumoStarted = 2; SendClientMessageToAll(0xAA3333AA,\"{cccccc}Kiestél a játéból! {3399ff}Car Sumo Minigame {cccccc}elíndult!\"); for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { TogglePlayerControllable(i,1); GameTextForPlayer(i,\"~r~~h~Kiestél!\",3000,3); SetTimerEx(\"Eliminat\",500,0,\"i\",i); return 1; } return 1; } } }else SendClientMessage(playerid,0xFF0000AA,\"A Minigame már elindult!\"); }else SendClientMessage(playerid,0xFF0000AA,\"Már benne vagy a Minigameban kilépéshez /exitminigame!\"); return 1; } if (strcmp(\"/exitminigame\", cmdtext, true, 10) == 0) { if(minid[playerid] == -1) return SendClientMessage(playerid,0xFFFF00AA,\"Nem vagy Minigámeban!\"); minid[playerid] = -1; SetPlayerVirtualWorld(playerid,0); for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { new Float:x,Float:y,Float:z; GetPlayerPos(i,x,y,z); SetPlayerPos(i,x,y,z+1); DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); KillTimer(SumoTimer); InSumo =0; TogglePlayerControllable(i,1); } } SumoStarted=0; SpawnPlayer(playerid); return SendClientMessage(playerid,0xFFFF00AA,\"Kiléptél a Minigámebõl.\"); }else if(minid[playerid] != -1) return SendClientMessage(playerid,0xFF0000AA,\"Minigámeben nem használhatsz parancsokat Kilépéshez: /exitminigame\"); return 0; } public OnPlayerDeath(playerid, killerid, reason) { if(InSumo[playerid] == 1) { DestroyVehicle(SumoCar[playerid]); SumoPlayers--; InSumo[playerid] = 0; new string [1900]; if(Roman[playerid] == 0) if(SumoPlayers == 1) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { if(Roman[playerid] == 0) { format(string, sizeof(string), \"%s Megnyerte a minigamet\", Name(i),ScoreWin,CashWin); SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); } SendClientMessageToAll(red,string); SetPlayerScore(i,GetPlayerScore(i)+ScoreWin); GivePlayerMoney(i,CashWin); SumoPlayers = 0; InSumo[playerid] = 0; SumoStarted = 0; new Float:x,Float:y,Float:z; GetPlayerPos(i,x,y,z); SetPlayerPos(i,x,y,z+1); DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); TogglePlayerControllable(i,1); SetPlayerVirtualWorld(playerid,0); minid[playerid] = -1; InSumo = 0; } } } } return 1; } public OnPlayerSpawn(playerid) { switch(minid[playerid]) { case 0: // 0-ás azonosítószámú dm zónához tartozó tevékenységek { InSumo[playerid] =0; if(SUMO[playerid]==1) { PutPlayerInVehicle(playerid,SumoRandomCar(playerid),0); } return 1; } } return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(InSumo[playerid] == 1) { PutPlayerInVehicle(playerid,SumoCar[playerid],0); } return 1; } forward StartSumo(playerid); public StartSumo(playerid) { if(SumoSec > 1) { new time; new strec[128]; SumoSec--; time = (SumoSec); format(strec, sizeof(strec), \"~h~~r~Minigame Kezdés %d\", time); for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { GameTextForPlayer(i, strec, 3000, 3); } } } if(SumoSec == 1) { SumoSec = 0; if(SumoPlayers >= 2) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { GameTextForPlayer(i, \"~h~~w~- START -\", 3000, 3); KillTimer(SumoTimer); TogglePlayerControllable(i,1); SumoStarted=2; SetTimerEx(\"Eliminat\",500,0,\"i\",i); } } }else if(SumoPlayers < 2) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo == 1) { new Float:x,Float:y,Float:z; GetPlayerPos(i,x,y,z); SetPlayerPos(i,x,y,z+1); DestroyVehicle(SumoCar); SetTimerEx(\"SpawnPP\",1000,0,\"i\",i); KillTimer(SumoTimer); InSumo =0; TogglePlayerControllable(i,1); } } SumoStarted=0; SetPlayerVirtualWorld(playerid,0); minid[playerid] = -1; if(Roman[playerid] == 0) { SendClientMessage(playerid,0xFF0000AA,\"A Derby Minigame befejezdõdõtt! Indok: Legalább 2 játékos szûkséges!\"); SetPlayerPos(playerid,-1372.7501,-263.4500,14.1484); } } } return 1; } stock Name(playerid) { new name[24]; GetPlayerName(playerid,name,24); return name; }
12
« Dátum: 2013. február 04. - 16:47:39 »
13
« Dátum: 2013. február 04. - 00:02:50 »
OK a TextDraw meg van de a warningok nincsenek arra valami ötlet Ja és mindenkinek jogában ál ojan szerver csinálni amijet akar ha copyza ha nem azt senki se sabhasa meg, hogy mijen szerot csinályak
14
« Dátum: 2013. február 03. - 22:19:18 »
De mindegyik obijektnél és van amit én mappoltam azokon is wanrningol letöltötem Lusta mapjait és abba is warningol és kidob
15
« Dátum: 2013. február 03. - 21:38:01 »
Van egy problámám akarmijen obijektet teszek be warningol a samp már probáltam mindenel CreateDynamicObject, CreateDynamicObjectEx, CreateObject külön FS be tettem és ha berakok a szerora egy mappot átkonvertálva akor amikor oda megyek ahol az obijekt van akor warningot ír és kidob a szerorol It egy kép http://kepfeltoltes.hu/130203/1220753169sa-mp-006_www.kepfeltoltes.hu_.png[/img] Ezeket írja ki és kidob utána THX ELÕREIS A SEGITSÉGET
|