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.
Témák - Hankok
Oldalak: [1 ]
1
« Dátum: 2014. február 26. - 19:36:39 »
Sziasztok!
Azzal a kéréssel fordulok hozzátok hogy amikor belépek a szerverbe hogy tudom megcsinálni azt hogy ezeket a zenéket játsza le ? :
2
« Dátum: 2014. február 01. - 12:18:07 »
Sziasztok! Egy olyan jármû scriptet keresek amiben lehet venni és lehet eladni kocsikat, fõkép venni. Rp szervereken sokat láttam már ilyet, találtam is vagy 2-3-t de nem mûködtek, leginkább az afterlife szerveren láttam normális vehicle scriptet, ha valaki tudd adni hasonlót vagy ki tudja írni nekem azt légyszíves írjon nekem ide vagy pm-be köszönöm szépen elõre is.
3
« Dátum: 2013. december 07. - 13:55:25 »
Sziasztok! Rég scripteltem el is felejtettem hogy mi hogy van, azzal a kérdéssel fordulok hozzátok hogy hogyan is tudnám megcsinálni azt hogy egy adott object 3 másodpercenként mozduljon meg? jelen esettben 3032 az. A másik kérdésem pedig az hogy azt hogy tudnám megcsinálni hogy a stunt helyen ne engedjen elõvenni fegyvert ? vagy esetleg van ilyen script ?
4
« Dátum: 2013. október 05. - 21:00:00 »
Sziasztok!
Amikor le copmlizom a Zamaroth TextDraw editor-t akkor nekem ezeket a hibákat adja le:
D:\\szerverek\\[HUN]Need For Speed szerver\\filterscripts\\TextDrawEditor1.0.pwn(3140) : error 021: symbol already defined: \"StripNewLine\" D:\\szerverek\\[HUN]Need For Speed szerver\\filterscripts\\TextDrawEditor1.0.pwn(3155) : error 021: symbol already defined: \"fcopytextfile\" D:\\szerverek\\[HUN]Need For Speed szerver\\filterscripts\\TextDrawEditor1.0.pwn(3208) : error 021: symbol already defined: \"HexToInt\" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Errors. ez miért van valaki nem tudja, köszönöm szépen elõre is a segítséget!
5
« Dátum: 2013. október 03. - 19:50:38 »
cucc
6
« Dátum: 2013. szeptember 29. - 17:43:47 »
H tudok olyan képet berakni a samp szerveremre mint pl mielõtt le spawnol 1 player azelõtt legyen 1 kép.
7
« Dátum: 2013. szeptember 29. - 15:19:33 »
videót, képet tegyél pls...
8
« Dátum: 2013. szeptember 28. - 12:15:31 »
Sziasztok!
Elhoztam egy filterscriptet az angol fórumról, neve Hay Mningame
Eredeti készítõ :ScRaT
Eredeti Téma :
http://forum.sa-mp.com/showthread.php?t=394465 Eredeti Videó :
VIDEO Én csak annyit edilteltem rajta h amit tudtam lefordítottam, és kijavítottam néhány buggot.
scriptet letöltheted innen :
http://data.hu/get/6976242/haym.pwn Vagy innen:
//includes #include <a_samp> //defines #define ConvertTime(%0,%1,%2,%3,%4) \\ new \\ Float: %0 = floatdiv(%1, 60000) \\ ;\\ %2 = floatround(%0, floatround_tozero); \\ %3 = floatround(floatmul(%0 - %2, 60), floatround_tozero); \\ %4 = floatround(floatmul(floatmul(%0 - %2, 60) - %3, 1000), floatround_tozero) #define ORANGE 0xDB881AAA #define HAY_X 4 #define HAY_Y 4 #define HAY_Z 30 #define HAY_B 146 #define HAY_R 4 #define SPEED_FACTOR 3000.0 #define ID_HAY_OBJECT 3374 //forwards forward TimerMove (); forward TimerScore (); forward FinishTimer (id, xq, yq, zq); forward TDScore (); //news new JoinedHay[MAX_PLAYERS] = -1; new WhatLevel[MAX_PLAYERS] = -1; new TimeInHay[MAX_PLAYERS]; new Speed_xy; new Speed_z; new Center_x; new Center_y; new Matrix[HAY_X][HAY_Y][HAY_Z]; new Hays[HAY_B]; new Text:HAYTD[MAX_PLAYERS]; //publics/stocks public OnGameModeInit() { print(\"\\n--------------------------------------\"); print(\" Hay Minigame By ScRaT\"); print(\"--------------------------------------\\n\"); RestartEveryThing (); for(new i=0; i<MAX_PLAYERS; i++) { HAYTD = TextDrawCreate(549.000000,397.000000,\"~h~~y~Hay Minigame~n~~r~Szint: ~w~0/31 ~n~~r~Idõ: ~w~00:00:00\"); TextDrawFont(HAYTD , 1); TextDrawSetProportional(HAYTD, 1); TextDrawSetOutline(HAYTD, 0); TextDrawColor(HAYTD,-65281); TextDrawLetterSize(HAYTD ,0.310000,1.400000); TextDrawTextSize(HAYTD , 640.000000,0.000000); TextDrawAlignment(HAYTD,1); TextDrawSetShadow(HAYTD, 0); TextDrawUseBox(HAYTD, 1); TextDrawBoxColor(HAYTD, 255); TextDrawBackgroundColor(HAYTD, 255); } return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { TextDrawHideForPlayer(playerid,HAYTD[playerid]); JoinedHay[playerid] = 0; return 1; } public OnPlayerConnect(playerid) { WhatLevel[playerid] = 0; JoinedHay[playerid] = 0; TextDrawHideForPlayer(playerid,HAYTD[playerid]); return 1; } public OnPlayerDisconnect(playerid, reason) { TextDrawHideForPlayer(playerid,HAYTD[playerid]); return 1; } public OnPlayerSpawn(playerid) { JoinedHay[playerid] = 0; SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000); TextDrawHideForPlayer(playerid,HAYTD[playerid]); return 1; } public OnPlayerDeath(playerid, killerid, reason) { TextDrawHideForPlayer(playerid,HAYTD[playerid]); JoinedHay[playerid] = 0; return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/hay\", cmdtext, true, 10) == 0) { if(JoinedHay[playerid] == 0) { JoinedHay[playerid] = 1; SetPlayerWorldBounds(playerid, 116.7788, -70.06725, 105.1009, -116.7788); TimeInHay[playerid] = GetTickCount(); SetPlayerPos(playerid, 0, 6.5, 3.2); SetPlayerFacingAngle( playerid, 135 ); SetPlayerVirtualWorld(playerid, 50); ResetPlayerWeapons(playerid); return 1; } if(JoinedHay[playerid] == 1) { JoinedHay[playerid] = 0; SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000); SetPlayerVirtualWorld(playerid, 0); TextDrawHideForPlayer(playerid,HAYTD[playerid]); SpawnPlayer(playerid); return 1; } return 1; } return 0; } RestartEveryThing () { new xq, yq, zq; new Number; Speed_xy = 2000 / (HAY_Z + 1); Speed_z = 1500 / (HAY_Z + 1); for (new i=0 ; i<MAX_PLAYERS ; i++) { if (IsPlayerConnected (i)) { WhatLevel = 0; } } for (xq=0 ; xq<HAY_X ; xq++) { for (yq=0 ; yq<HAY_Y ; yq++) { for (zq=0 ; zq<HAY_Z ; zq++) { Matrix[xq][yq][zq] = 0; } } } for (Number=0 ; Number<HAY_B ; Number++) { do { xq = random (HAY_X); yq = random (HAY_Y); zq = random (HAY_Z); } while (Matrix[xq][yq][zq] != 0); Matrix[xq][yq][zq] = 1; Hays[Number] = CreateObject (ID_HAY_OBJECT, xq*(-4), yq*(-4), (zq+1)*3, 0.0, 0.0, random (2)*180,50); } Center_x = (HAY_X + 1) * -2; Center_y = (HAY_Y + 1) * -2; CreateObject (ID_HAY_OBJECT, Center_x, Center_y, HAY_Z*3 + 3, 0, 0, 0,50); SetTimer (\"TimerMove\", 100, 0); SetTimer (\"TDScore\", 1000, 1); } public TimerMove () { new rand; new Hay; new Move = -1; new xq, yq, zq; new Float:x2, Float:y2, Float:z2; new Timez; new Float:Speed; rand = random (HAY_B); Hay = Hays[rand]; if(IsObjectMoving(Hay)) { SetTimer (\"TimerMove\", 200, 0); return 1; } Move = random (6); GetObjectPos (Hay, x2, y2, z2); xq = floatround (x2/-4.0); yq = floatround (y2/-4.0); zq = floatround (z2/3.0)-1; if ((Move == 0) && (xq != 0) && (Matrix[xq-1][yq][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); xq = xq - 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2+4.0, y2, z2, Speed); } else if ((Move == 1) && (xq != HAY_X-1) && (Matrix[xq+1][yq][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); xq = xq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2-4.0, y2, z2, Speed); } else if ((Move == 2) && (yq != 0) && (Matrix[xq][yq-1][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); yq = yq - 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2+4.0, z2, Speed); } else if ((Move == 3) && (yq != HAY_Y-1) && (Matrix[xq][yq+1][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); yq = yq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2-4.0, z2, Speed); } else if ((Move == 4) && (zq != 0) && (Matrix[xq][yq][zq-1] == 0)) { Timez = 3000 - Speed_z * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); zq = zq - 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2, z2-3.0, Speed); } else if ((Move == 5) && (zq != HAY_Z-1) && (Matrix[xq][yq][zq+1] == 0)) { Timez = 3000 - Speed_z * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); zq = zq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2, z2+3.0, Speed); } else if ((Move == 6) && (zq != HAY_Z-1) && (Matrix[xq][yq][zq+1] == 0)) { Timez = 3000 - Speed_z * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); zq = zq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2, z2+3.0, Speed); } SetTimer (\"TimerMove\", 200, 0); return 1; } //============================================================================== public FinishTimer (id, xq, yq, zq) { Matrix[xq][yq][zq] = 0; } //============================================================================== public TimerScore () { new Float:xq, Float:yq, Float:zq; for (new i=0 ; i<MAX_PLAYERS ; i++) { if (IsPlayerConnected (i)) { GetPlayerPos (i, xq, yq, zq); if (xq<=2.0 && xq>=-15.0 && yq<=2.0 && yq>=-15.0) { new Level = (floatround (zq)/3) - 1; WhatLevel = Level; } else { WhatLevel = 0; } } } } public TDScore() { TimerScore(); new Level,string[256],PlayerN[MAX_PLAYER_NAME]; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(JoinedHay == 1) { new tH,tM,tS; new TimeStamp = GetTickCount(); new TotalRaceTime = TimeStamp - TimeInHay; ConvertTime(var, TotalRaceTime, tH, tM, tS); Level = WhatLevel; format(string,sizeof(string),\"~h~~y~Hay Minigame~n~~r~Szint: ~w~%d/31 ~n~~r~Ido: ~w~%02d:%02d\\ \",Level,tH,tM,tS); TextDrawSetString(HAYTD, string); TextDrawShowForPlayer(i, HAYTD); if(WhatLevel == 31) { GetPlayerName(i, PlayerN, sizeof(PlayerN)); format(string, sizeof(string),\"[MINIGAME] %s Sikeresen végig játszottad a minigame-t %02d perc %02d másodperc alatt\", PlayerN,tH,tM,tS); SendClientMessageToAll(ORANGE,string); TextDrawHideForPlayer(i, HAYTD); SetPlayerPos(i,0,0,0); SpawnPlayer(i); } } if(JoinedHay != 1) { TextDrawHideForPlayer(i, HAYTD); } } } return 1; }
9
« Dátum: 2013. szeptember 26. - 18:00:20 »
A képet a Képfeltöltés.hu tárolja.
http://www.kepfeltoltes.hu valaki nem tudja h ezt miért írja?
Pawno script :
// [FS]Property-System by =>Sandra<= // Magyarosítást és kisebb átalakításokat készítette: Adamo(adams94) #include <a_samp> #include <dini> #define MAX_PROPERTIES 100 #define MAX_PROPERTIES_PER_PLAYER 4 #define UNBUYABLETIME 15 #define ENABLE_LOGIN_SYSTEM 1 #define ENABLE_MAP_ICON_STREAMER 1 #define REGISTER_COMMAND \"/register\" #define LOGIN_COMMAND \"/login\" new PropertiesAmount; new MP; enum propinfo { PropName[64], Float:PropX, Float:PropY, Float:PropZ, PropIsBought, PropUnbuyableTime, PropOwner[MAX_PLAYER_NAME], PropValue, PropEarning, PickupNr, } new PropInfo[MAX_PROPERTIES][propinfo]; new PlayerProps[MAX_PLAYERS]; new EarningsForPlayer[MAX_PLAYERS]; new Logged[MAX_PLAYERS]; public OnFilterScriptInit() { LoadProperties(); MP = GetMaxPlayers(); for(new i; i<MP; i++) { if(IsPlayerConnected(i)) { new pName[MAX_PLAYER_NAME]; GetPlayerName(i, pName, MAX_PLAYER_NAME); for(new propid; propid < PropertiesAmount; propid++) { if(PropInfo[propid][PropIsBought] == 1) { if(strcmp(PropInfo[propid][PropOwner], pName, true)==0) { EarningsForPlayer += PropInfo[propid][PropEarning]; PlayerProps++; } } } } } SetTimer(\"UpdateUnbuyableTime\", 60000, 1); #if ENABLE_MAP_ICON_STREAMER == 1 SetTimer(\"MapIconStreamer\", 500, 1); #endif SetTimer(\"PropertyPayout\", 60000, 1); return 1; } public OnFilterScriptExit() { SaveProperties(); return 1; } public OnPlayerConnect(playerid) { PlayerProps[playerid] = 0; Logged[playerid] = 0; EarningsForPlayer[playerid] = 0; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); for(new propid; propid < PropertiesAmount; propid++) { if(PropInfo[propid][PropIsBought] == 1) { if(strcmp(PropInfo[propid][PropOwner], pName, true)==0) { EarningsForPlayer[playerid] += PropInfo[propid][PropEarning]; PlayerProps[playerid]++; } } } #if ENABLE_LOGIN_SYSTEM == 0 if(PlayerProps[playerid] > 0) { new str[128]; format(str, 128, \"Van %d házad. /myh ezzel a parancsal megnézheted.\", PlayerProps[playerid]); SendClientMessage(playerid, 0x99FF66AA, str); } #endif return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256], idx, tmp[256]; cmd = strtok(cmdtext, idx); //------------------------------------------------------------------------------ if(strcmp(cmd, \"/helphouse\", true)==0 || strcmp(cmd, \"/helph\", true)==0) { SendClientMessage(playerid, 0xFFFF00AA, \"|=========================================================|\"); new str[128]; #if ENABLE_LOGIN_SYSTEM == 1 format(str, 128, \"%s - Regisztráció, hogy legyenek saját házaid.\", REGISTER_COMMAND); SendClientMessage(playerid, 0x66CCFFAA, str); format(str, 128, \"%s - Bejelentkezés.\", LOGIN_COMMAND); SendClientMessage(playerid, 0x66CCFFAA, str); #endif SendClientMessage(playerid, 0x33AA33AA, \"/buyhouse, /buyh - Házvásárlás.\"); SendClientMessage(playerid, 0x33AA33AA, \"/sellhouse, /sellh - Házeladás.\"); SendClientMessage(playerid, 0x33AA33AA, \"/myhouse, /myh - Házaid megtekintése.\"); // if(IsPlayerAdmin(playerid)) // { // SendClientMessage(playerid, 0x66CCFFAA, \"/sellallproperties [Admin Only] ==>> To sell all properties for all players\"); // } SendClientMessage(playerid, 0xFFFF00AA, \"|=========================================================|\"); return 1; } //------------------------------------------------------------------------------ if(strcmp(cmd, \"/buyhouse\", true)==0 || strcmp(cmd, \"/buyh\", true)==0) { new str[128]; #if ENABLE_LOGIN_SYSTEM == 1 if(Logged[playerid] == 0) { format(str, 128, \"Elöbb jelentkezbe: %s\", LOGIN_COMMAND); SendClientMessage(playerid, 0xFF0000AA, str); return 1; } #endif new propid = IsPlayerNearProperty(playerid); if(propid == -1) { SendClientMessage(playerid, 0xFF0000AA, \"Nincs ház a közelben!\"); return 1; } if(PlayerProps[playerid] == MAX_PROPERTIES_PER_PLAYER) { format(str, 128, \"Neked már van %d házad, nem tudsz többet venni!!\", PlayerProps[playerid]); SendClientMessage(playerid, 0xFF0000AA, str); return 1; } if(PropInfo[propid][PropIsBought] == 1) { new ownerid = GetPlayerID(PropInfo[propid][PropOwner]); if(ownerid == playerid) { SendClientMessage(playerid, 0xFF0000AA, \"Ez a ház már a tied!\"); return 1; } else { if(PropInfo[propid][PropUnbuyableTime] > 0) { format(str, 128, \"Ez a ház %s tulajdona!. Várj %d percet és elárverezik!\", PropInfo[propid][PropOwner], PropInfo[propid][PropUnbuyableTime]); SendClientMessage(playerid, 0xFF0000AA, str); return 1; } } } if(GetPlayerMoney(playerid) < PropInfo[propid][PropValue]) { format(str, 128, \"Nincs elég pénzed!(%d$ szükséges!)\", PropInfo[propid][PropValue]); SendClientMessage(playerid, 0xFF0000AA, str); return 1; } new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); if(PropInfo[propid][PropIsBought] && PropInfo[propid][PropUnbuyableTime] == 0) { new ownerid = GetPlayerID(PropInfo[propid][PropOwner]); format(str, 128, \"%s megvette a házad! \\\"%s\\\". Te 50százalék részvényt kaptál!(%d$)\", pName, PropInfo[propid][PropName], (PropInfo[propid][PropValue]/2)); GivePlayerMoney(ownerid, (PropInfo[propid][PropValue]/2)); SendClientMessage(ownerid, 0xFFFF00AA, str); PlayerProps[ownerid]--; } PropInfo[propid][PropOwner] = pName; PropInfo[propid][PropIsBought] = 1; PropInfo[propid][PropUnbuyableTime] = UNBUYABLETIME; EarningsForPlayer[playerid] += PropInfo[propid][PropEarning]; GivePlayerMoney(playerid, (0-PropInfo[propid][PropValue])); format(str, 128, \"Megvetted ezt a házat: \\\"%s\\\".Ennyiért: %d$.\", PropInfo[propid][PropName], PropInfo[propid][PropValue]); SendClientMessage(playerid, 0xFFFF00AA, str); format(str, 128, \"%s megvette ezt a házat: \\\"%s\\\".\", pName, PropInfo[propid][PropName]); SendClientMessageToAllEx(playerid, 0xFFFF00AA, str); PlayerProps[playerid]++; return 1; } //------------------------------------------------------------------------------ if(strcmp(cmd, \"/sellhouse\", true) == 0 || strcmp(cmd, \"/sellh\", true) == 0) { new str[128]; #if ENABLE_LOGIN_SYSTEM == 1 if(Logged[playerid] == 0) { format(str, 128, \"Elöbb jelentkezbe: %s\", LOGIN_COMMAND); SendClientMessage(playerid, 0xFF0000AA, str); return 1; } #endif new propid = IsPlayerNearProperty(playerid); if(propid == -1) { SendClientMessage(playerid, 0xFF0000AA, \"Nincs ház a közelben!\"); return 1; } if(PropInfo[propid][PropIsBought] == 1) { new ownerid = GetPlayerID(PropInfo[propid][PropOwner]); if(ownerid != playerid) { SendClientMessage(playerid, 0xFF0000AA, \"Ez a ház nem a tied!\"); return 1; } } new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(PropInfo[propid][PropOwner], MAX_PLAYER_NAME, \"Nobody\"); PropInfo[propid][PropIsBought] = 0; PropInfo[propid][PropUnbuyableTime] = 0; GivePlayerMoney(playerid, (PropInfo[propid][PropValue]/2)); format(str, 128, \"Eladtad ezt a házad: \\\"%s\\\", ennyiért: %d$\", PropInfo[propid][PropName], PropInfo[propid][PropValue]/2); SendClientMessage(playerid, 0xFFFF00AA, str); format(str, 128, \"%s eladta ezt a házat: \\\"%s\\\".\", pName, PropInfo[propid][PropName]); SendClientMessageToAllEx(playerid, 0xFFFF00AA, str); PlayerProps[playerid]--; EarningsForPlayer[playerid] -= PropInfo[propid][PropEarning]; return 1; } //------------------------------------------------------------------------------ if(strcmp(cmd, \"/myhouse\", true) == 0 || strcmp(cmd, \"/myh\", true) == 0) { new str[128], ownerid; #if ENABLE_LOGIN_SYSTEM == 1 if(Logged[playerid] == 0) { format(str, 128, \"Elöbb jelentkezbe: %s\", LOGIN_COMMAND); SendClientMessage(playerid, 0xFF0000AA, str); return 1; } #endif if(PlayerProps[playerid] == 0) { SendClientMessage(playerid, 0xFF0000AA, \"Nincs házad!\"); return 1; } format(str, 128, \"|================ Van %d házad: =================|\", PlayerProps[playerid]); SendClientMessage(playerid, 0x99FF66AA, str); for(new propid; propid < PropertiesAmount; propid++) { if(PropInfo[propid][PropIsBought] == 1) { ownerid = GetPlayerID(PropInfo[propid][PropOwner]); if(ownerid == playerid) { format(str, 128, \"Neve: \\\"%s\\\" Értéke: %d$ Bevétel: %d$\", PropInfo[propid][PropName], PropInfo[propid][PropValue], PropInfo[propid][PropEarning]); SendClientMessage(playerid, 0x99FF66AA, str); } } } SendClientMessage(playerid, 0x99FF66AA, \"|============================================|\"); return 1; } //------------------------------------------------------------------------------ #if ENABLE_LOGIN_SYSTEM == 1 if(strcmp(cmd, REGISTER_COMMAND, true) == 0) { new str[128]; if(Logged[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA, \"Te már bevagy jelentkezve!\"); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(str, 128, \"%s <jelszó>\", REGISTER_COMMAND); SendClientMessage(playerid, 0xAFAFAFAA, str); return 1; } // if(strlen(tmp) < 5) return SendClientMessage(playerid, 0xFF9966AA, \"Password too short! At least 5 characters.\"); // if(strlen(tmp) > 20) return SendClientMessage(playerid, 0xFF9966AA, \"Password too long! Max 20 characters.\"); new pName[MAX_PLAYER_NAME], pass; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); pass = dini_Int(\"PropertySystem/PlayerAccounts.txt\", pName); if(pass == 0) { dini_IntSet(\"PropertySystem/PlayerAccounts.txt\", pName, encodepass(tmp)); Logged[playerid] = 1; format(str, 128, \"Regisztráltál!. Mikor ujra jösz: \\\"%s %s\\\"\", LOGIN_COMMAND, tmp); SendClientMessage(playerid, 0x99FF66AA, str); } else { format(str, 128, \"Ez a név már regisztrált!\"); SendClientMessage(playerid, 0xFF9966AA, str); } return 1; } //------------------------------------------------------------------------------ if(strcmp(cmd, LOGIN_COMMAND, true) == 0) { new str[128]; if(Logged[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA, \"Te már bevagy jelentkezve!\"); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(str, 128, \"%s <jelszó>\", LOGIN_COMMAND); SendClientMessage(playerid, 0xAFAFAFAA, str); return 1; } new pName[MAX_PLAYER_NAME], pass; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); pass = dini_Int(\"PropertySystem/PlayerAccounts.txt\", pName); if(pass == 0) { format(str, 128, \"Te még nem regisztráltál! Regisztrálj: %s\", REGISTER_COMMAND); SendClientMessage(playerid, 0xFF0000AA, str); } else { if(pass == encodepass(tmp)) { Logged[playerid] = 1; SendClientMessage(playerid, 0x99FF66AA, \"Bejelentkeztél! Tudsz házat venni és eladni!\"); } else { SendClientMessage(playerid, 0xFF0000AA, \"Hibás jelszó!\"); } } #if ENABLE_LOGIN_SYSTEM == 1 if(PlayerProps[playerid] > 0) { format(str, 128, \"Van %d házad. /myh ezzel a parancsal megnézheted.\", PlayerProps[playerid]); SendClientMessage(playerid, 0x99FF66AA, str); } #endif return 1; } #endif //------------------------------------------------------------------------------ if(strcmp(cmd, \"/sellallproperties\", true)==0) { // if(IsPlayerAdmin(playerid)) // { for(new propid; propid<PropertiesAmount; propid++) { format(PropInfo[propid][PropOwner], MAX_PLAYER_NAME, \"Nobody\"); PropInfo[propid][PropIsBought] = 0; PropInfo[propid][PropUnbuyableTime] = 0; } for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { PlayerProps = 0; } } new str[128], pName[24]; GetPlayerName(playerid, pName, 24); format(str, 128, \"Az admin: %s eldata az összes házat!\", pName); SendClientMessageToAll(0xFFCC66AA, str); // } return 1; } return 0; } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ public OnPlayerPickUpPickup(playerid, pickupid) { new propid = -1; for(new id; id<MAX_PROPERTIES; id++) { if(PropInfo[id][PickupNr] == pickupid) { propid = id; break; } } if(propid != -1) { new str[128]; format(str, 128, \"~g~\\\"%s\\\"~n~~r~\'Ara: ~y~%d$~n~~r~Kereset: ~y~%d$~n~~r~Tulajdonos: ~y~%s ~n~~w~(~y~nobody~w~ = senki)\", PropInfo[propid][PropName], PropInfo[propid][PropValue], PropInfo[propid][PropEarning], PropInfo[propid][PropOwner]); GameTextForPlayer(playerid, str, 6000, 3); } return 1; } stock LoadProperties() { if(fexist(\"PropertySystem/PropertyInfo.txt\")) { CountProperties(); new Argument[9][70]; new entry[256], BoughtProps; new File: propfile = fopen(\"PropertySystem/PropertyInfo.txt\", io_read); if (propfile) { for(new id; id<PropertiesAmount; id++) { fread(propfile, entry); split(entry, Argument, \',\'); format(PropInfo[id][PropName], 64, \"%s\", Argument[0]); PropInfo[id][PropX] = floatstr(Argument[1]); PropInfo[id][PropY] = floatstr(Argument[2]); PropInfo[id][PropZ] = floatstr(Argument[3]); PropInfo[id][PropValue] = strval(Argument[4]); PropInfo[id][PropEarning] = strval(Argument[5]); format(PropInfo[id][PropOwner], MAX_PLAYER_NAME, \"%s\", Argument[6]); PropInfo[id][PropIsBought] = strval(Argument[7]); PropInfo[id][PropUnbuyableTime] = strval(Argument[8]); PropInfo[id][PickupNr] = CreatePickup(1273, 1, PropInfo[id][PropX], PropInfo[id][PropY], PropInfo[id][PropZ]); if(PropInfo[id][PropIsBought] == 1) { BoughtProps++; } } fclose(propfile); // printf(\"===================================\"); // printf(\"|| Created %d Properties ||\", PropertiesAmount); // printf(\"||%d of the properties are bought||\", BoughtProps); // printf(\"===================================\"); } } } stock SaveProperties() { new entry[256]; new File: propfile = fopen(\"PropertySystem/PropertyInfo.txt\", io_write); for(new id; id<PropertiesAmount; id++) { format(entry, 128, \"%s,%.2f,%.2f,%.2f,%d,%d,%s,%d,%d \\r\\n\",PropInfo[id][PropName], PropInfo[id][PropX], PropInfo[id][PropY], PropInfo[id][PropZ], PropInfo[id][PropValue], PropInfo[id][PropEarning], PropInfo[id][PropOwner], PropInfo[id][PropIsBought], PropInfo[id][PropUnbuyableTime]); fwrite(propfile, entry); } // printf(\"Saved %d Properties!\", PropertiesAmount); fclose(propfile); } forward split(const strsrc[], strdest[][], delimiter); public split(const strsrc[], strdest[][], delimiter) { new i, li; new aNum; new len; while(i <= strlen(strsrc)){ if(strsrc==delimiter || i==strlen(strsrc)){ len = strmid(strdest[aNum], strsrc, li, i, 128); strdest[aNum][len] = 0; li = i+1; aNum++; } i++; } return 1; } stock CountProperties() { new entry[256]; new File: propfile = fopen(\"PropertySystem/PropertyInfo.txt\", io_read); while(fread(propfile, entry, 256)) { PropertiesAmount++; } fclose(propfile); } forward IsPlayerNearProperty(playerid); public IsPlayerNearProperty(playerid) { new Float:Distance; for(new prop; prop<PropertiesAmount; prop++) { Distance = GetDistanceToProperty(playerid, prop); if(Distance < 1.0) { return prop; } } return -1; } forward Float:GetDistanceToProperty(playerid, Property); public Float:GetDistanceToProperty(playerid, Property) { new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2; GetPlayerPos(playerid,x1,y1,z1); x2 = PropInfo[Property][PropX]; y2 = PropInfo[Property][PropY]; z2 = PropInfo[Property][PropZ]; return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2)); } stock GetPlayerID(const Name[]) { for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new pName[MAX_PLAYER_NAME]; GetPlayerName(i, pName, sizeof(pName)); if(strcmp(Name, pName, true)==0) { return i; } } } return -1; } stock SendClientMessageToAllEx(exeption, color, const message[]) { for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(i != exeption) { SendClientMessage(i, color, message); } } } } forward UpdateUnbuyableTime(); public UpdateUnbuyableTime() { for(new propid; propid<PropertiesAmount; propid++) { if(PropInfo[propid][PropIsBought] == 1) { if(PropInfo[propid][PropUnbuyableTime] > 0) { PropInfo[propid][PropUnbuyableTime]--; } } } } stock encodepass(buf[]) { new length=strlen(buf); new s1 = 1; new s2 = 0; new n; for (n=0; n<length; n++) { s1 = (s1 + buf[n]) % 65521; s2 = (s2 + s1) % 65521; } return (s2 << 16) + s1; } forward MapIconStreamer(); public MapIconStreamer() { for(new i; i<MP; i++) { if(IsPlayerConnected(i)) { new Float:SmallestDistance = 99999.9; new CP, Float:OldDistance; for(new propid; propid<PropertiesAmount; propid++) { OldDistance = GetDistanceToProperty(i, propid); if(OldDistance < SmallestDistance) { SmallestDistance = OldDistance; CP = propid; } } RemovePlayerMapIcon(i, 31); if(PropInfo[CP][PropIsBought] == 1) { SetPlayerMapIcon(i, 31, PropInfo[CP][PropX], PropInfo[CP][PropY], PropInfo[CP][PropZ], 32, 0); } else { SetPlayerMapIcon(i, 31, PropInfo[CP][PropX], PropInfo[CP][PropY], PropInfo[CP][PropZ], 31, 0); } } } } forward PropertyPayout(); public PropertyPayout() { new str[64]; for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerProps > 0) { GivePlayerMoney(i, EarningsForPlayer); format(str, 64, \"Házaid bevétele: %d$\", EarningsForPlayer); SendClientMessage(i, 0x99FF66AA, str); } } } }
10
« Dátum: 2013. szeptember 22. - 14:39:36 »
Sziasztok!
Valaki nem tudná nekem kijavítani a következõ scriptet? Az a hibája hogy amikor bent vagyok a minigame-be akkor nem csak én láttom azt a kis Textdrawot ami számolja a magasságomat meg az idõt, hanem az is látja aki nincs bent. szóval ezt szeretném kijavítani hogy csak az lássa aki bent van a minigame-be
+ van még 1 olyan hiba is h amikor fellépek a szerverre akkor a jobb alsó sarokban látszik 1 olyan h Játékosok: x (x = játékos mennyiség) a filterscript nem MAGYAR és érdekes módon magyarul írja ki a játékosok számát ...
ITT A SCRIPT :
//includes #include <a_samp> //defines #define ConvertTime(%0,%1,%2,%3,%4) \\ new \\ Float: %0 = floatdiv(%1, 60000) \\ ;\\ %2 = floatround(%0, floatround_tozero); \\ %3 = floatround(floatmul(%0 - %2, 60), floatround_tozero); \\ %4 = floatround(floatmul(floatmul(%0 - %2, 60) - %3, 1000), floatround_tozero) #define ORANGE 0xDB881AAA #define HAY_X 4 #define HAY_Y 4 #define HAY_Z 30 #define HAY_B 146 #define HAY_R 4 #define SPEED_FACTOR 3000.0 #define ID_HAY_OBJECT 3374 //forwards forward TimerMove (); forward TimerScore (); forward FinishTimer (id, xq, yq, zq); forward TDScore (); //news new JoinedHay[MAX_PLAYERS] = -1; new WhatLevel[MAX_PLAYERS] = -1; new TimeInHay[MAX_PLAYERS]; new Speed_xy; new Speed_z; new Center_x; new Center_y; new Matrix[HAY_X][HAY_Y][HAY_Z]; new Hays[HAY_B]; new Text:HAYTD[MAX_PLAYERS]; //publics/stocks public OnFilterScriptInit() { print(\"\\n--------------------------------------\"); print(\" Hay Minigame By ScRaT\"); print(\"--------------------------------------\\n\"); RestartEveryThing (); for(new i=0; i<MAX_PLAYERS; i++) { HAYTD = TextDrawCreate(549.000000,397.000000,\"~h~~y~Hay Minigame~n~~r~Level: ~w~0/31 ~n~~r~Time: ~w~00:00:00\"); TextDrawFont(HAYTD , 1); TextDrawSetProportional(HAYTD, 1); TextDrawSetOutline(HAYTD, 0); TextDrawColor(HAYTD,-65281); TextDrawLetterSize(HAYTD ,0.310000,1.400000); TextDrawTextSize(HAYTD , 640.000000,0.000000); TextDrawAlignment(HAYTD,1); TextDrawSetShadow(HAYTD, 0); TextDrawUseBox(HAYTD, 1); TextDrawBoxColor(HAYTD, 255); TextDrawBackgroundColor(HAYTD, 255); } return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { TextDrawHideForPlayer(playerid,HAYTD[playerid]); JoinedHay[playerid] = 0; return 1; } public OnPlayerConnect(playerid) { WhatLevel[playerid] = 0; JoinedHay[playerid] = 0; TextDrawHideForPlayer(playerid,HAYTD[playerid]); return 1; } public OnPlayerDisconnect(playerid, reason) { TextDrawHideForPlayer(playerid,HAYTD[playerid]); return 1; } public OnPlayerSpawn(playerid) { JoinedHay[playerid] = 0; SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000); TextDrawHideForPlayer(playerid,HAYTD[playerid]); return 1; } public OnPlayerDeath(playerid, killerid, reason) { TextDrawHideForPlayer(playerid,HAYTD[playerid]); JoinedHay[playerid] = 0; return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/hay\", cmdtext, true, 10) == 0) { if(JoinedHay[playerid] == 0) { JoinedHay[playerid] = 1; SetPlayerWorldBounds(playerid, 116.7788, -70.06725, 105.1009, -116.7788); TimeInHay[playerid] = GetTickCount(); SetPlayerPos(playerid, 0, 6.5, 3.2); SetPlayerFacingAngle( playerid, 135 ); SetPlayerVirtualWorld(playerid, 50); ResetPlayerWeapons(playerid); return 1; } if(JoinedHay[playerid] == 1) { JoinedHay[playerid] = 0; SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000); TextDrawHideForPlayer(playerid,HAYTD[playerid]); SpawnPlayer(playerid); return 1; } return 1; } return 0; } RestartEveryThing () { new xq, yq, zq; new Number; Speed_xy = 2000 / (HAY_Z + 1); Speed_z = 1500 / (HAY_Z + 1); for (new i=0 ; i<MAX_PLAYERS ; i++) { if (IsPlayerConnected (i)) { WhatLevel = 0; } } for (xq=0 ; xq<HAY_X ; xq++) { for (yq=0 ; yq<HAY_Y ; yq++) { for (zq=0 ; zq<HAY_Z ; zq++) { Matrix[xq][yq][zq] = 0; } } } for (Number=0 ; Number<HAY_B ; Number++) { do { xq = random (HAY_X); yq = random (HAY_Y); zq = random (HAY_Z); } while (Matrix[xq][yq][zq] != 0); Matrix[xq][yq][zq] = 1; Hays[Number] = CreateObject (ID_HAY_OBJECT, xq*(-4), yq*(-4), (zq+1)*3, 0.0, 0.0, random (2)*180,50); } Center_x = (HAY_X + 1) * -2; Center_y = (HAY_Y + 1) * -2; CreateObject (ID_HAY_OBJECT, Center_x, Center_y, HAY_Z*3 + 3, 0, 0, 0,50); SetTimer (\"TimerMove\", 100, 0); SetTimer (\"TDScore\", 1000, 1); } public TimerMove () { new rand; new Hay; new Move = -1; new xq, yq, zq; new Float:x2, Float:y2, Float:z2; new Timez; new Float:Speed; rand = random (HAY_B); Hay = Hays[rand]; if(IsObjectMoving(Hay)) { SetTimer (\"TimerMove\", 200, 0); return 1; } Move = random (6); GetObjectPos (Hay, x2, y2, z2); xq = floatround (x2/-4.0); yq = floatround (y2/-4.0); zq = floatround (z2/3.0)-1; if ((Move == 0) && (xq != 0) && (Matrix[xq-1][yq][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); xq = xq - 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2+4.0, y2, z2, Speed); } else if ((Move == 1) && (xq != HAY_X-1) && (Matrix[xq+1][yq][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); xq = xq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2-4.0, y2, z2, Speed); } else if ((Move == 2) && (yq != 0) && (Matrix[xq][yq-1][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); yq = yq - 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2+4.0, z2, Speed); } else if ((Move == 3) && (yq != HAY_Y-1) && (Matrix[xq][yq+1][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); yq = yq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2-4.0, z2, Speed); } else if ((Move == 4) && (zq != 0) && (Matrix[xq][yq][zq-1] == 0)) { Timez = 3000 - Speed_z * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); zq = zq - 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2, z2-3.0, Speed); } else if ((Move == 5) && (zq != HAY_Z-1) && (Matrix[xq][yq][zq+1] == 0)) { Timez = 3000 - Speed_z * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); zq = zq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2, z2+3.0, Speed); } else if ((Move == 6) && (zq != HAY_Z-1) && (Matrix[xq][yq][zq+1] == 0)) { Timez = 3000 - Speed_z * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); zq = zq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2, z2+3.0, Speed); } SetTimer (\"TimerMove\", 200, 0); return 1; } //============================================================================== public FinishTimer (id, xq, yq, zq) { Matrix[xq][yq][zq] = 0; } //============================================================================== public TimerScore () { new Float:xq, Float:yq, Float:zq; for (new i=0 ; i<MAX_PLAYERS ; i++) { if (IsPlayerConnected (i)) { GetPlayerPos (i, xq, yq, zq); if (xq<=2.0 && xq>=-15.0 && yq<=2.0 && yq>=-15.0) { new Level = (floatround (zq)/3) - 1; WhatLevel = Level; } else { WhatLevel = 0; } } } } public TDScore() { TimerScore(); new Level,string[256],PlayerN[MAX_PLAYER_NAME]; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(JoinedHay == 1) { new tH,tM,tS; new TimeStamp = GetTickCount(); new TotalRaceTime = TimeStamp - TimeInHay; ConvertTime(var, TotalRaceTime, tH, tM, tS); Level = WhatLevel; format(string,sizeof(string),\"~h~~y~Hay Minigame~n~~r~Level: ~w~%d/31 ~n~~r~Time: ~w~%02d:%02d\\ \",Level,tH,tM,tS); TextDrawSetString(HAYTD, string); TextDrawShowForPlayer(i, HAYTD); if(WhatLevel == 31) { GetPlayerName(i, PlayerN, sizeof(PlayerN)); format(string, sizeof(string),\"[HAY] %s Finished The Hay Minigame In %02d Min %02d Sec\", PlayerN,tH,tM,tS); SendClientMessageToAll(ORANGE,string); TextDrawHideForPlayer(i, HAYTD); SetPlayerPos(i,0,0,0); SpawnPlayer(i); } } if(JoinedHay != 1) { TextDrawHideForPlayer(i, HAYTD); } } } return 1; } Dupla hozzászólás automatikusan összefûzve. ( 2013. szeptember 22. - 18:55:32 ) téma megoldva, itt van helyesen a script, a hiba az volt h át kellet írni az OnPlayerScriptInit-et OnGameModeInit-re
Helyesen :
//includes #include <a_samp> //defines #define ConvertTime(%0,%1,%2,%3,%4) \\ new \\ Float: %0 = floatdiv(%1, 60000) \\ ;\\ %2 = floatround(%0, floatround_tozero); \\ %3 = floatround(floatmul(%0 - %2, 60), floatround_tozero); \\ %4 = floatround(floatmul(floatmul(%0 - %2, 60) - %3, 1000), floatround_tozero) #define ORANGE 0xDB881AAA #define HAY_X 4 #define HAY_Y 4 #define HAY_Z 30 #define HAY_B 146 #define HAY_R 4 #define SPEED_FACTOR 3000.0 #define ID_HAY_OBJECT 3374 //forwards forward TimerMove (); forward TimerScore (); forward FinishTimer (id, xq, yq, zq); forward TDScore (); //news new JoinedHay[MAX_PLAYERS] = -1; new WhatLevel[MAX_PLAYERS] = -1; new TimeInHay[MAX_PLAYERS]; new Speed_xy; new Speed_z; new Center_x; new Center_y; new Matrix[HAY_X][HAY_Y][HAY_Z]; new Hays[HAY_B]; new Text:HAYTD[MAX_PLAYERS]; //publics/stocks public OnGameModeInit() { print(\"\\n--------------------------------------\"); print(\" Hay Minigame By ScRaT\"); print(\"--------------------------------------\\n\"); RestartEveryThing (); for(new i=0; i<MAX_PLAYERS; i++) { HAYTD = TextDrawCreate(549.000000,397.000000,\"~h~~y~Hay Minigame~n~~r~Level: ~w~0/31 ~n~~r~Time: ~w~00:00:00\"); TextDrawFont(HAYTD , 1); TextDrawSetProportional(HAYTD, 1); TextDrawSetOutline(HAYTD, 0); TextDrawColor(HAYTD,-65281); TextDrawLetterSize(HAYTD ,0.310000,1.400000); TextDrawTextSize(HAYTD , 640.000000,0.000000); TextDrawAlignment(HAYTD,1); TextDrawSetShadow(HAYTD, 0); TextDrawUseBox(HAYTD, 1); TextDrawBoxColor(HAYTD, 255); TextDrawBackgroundColor(HAYTD, 255); } return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { TextDrawHideForPlayer(playerid,HAYTD[playerid]); JoinedHay[playerid] = 0; return 1; } public OnPlayerConnect(playerid) { WhatLevel[playerid] = 0; JoinedHay[playerid] = 0; TextDrawHideForPlayer(playerid,HAYTD[playerid]); return 1; } public OnPlayerDisconnect(playerid, reason) { TextDrawHideForPlayer(playerid,HAYTD[playerid]); return 1; } public OnPlayerSpawn(playerid) { JoinedHay[playerid] = 0; SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000); TextDrawHideForPlayer(playerid,HAYTD[playerid]); return 1; } public OnPlayerDeath(playerid, killerid, reason) { TextDrawHideForPlayer(playerid,HAYTD[playerid]); JoinedHay[playerid] = 0; return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/hay\", cmdtext, true, 10) == 0) { if(JoinedHay[playerid] == 0) { JoinedHay[playerid] = 1; SetPlayerWorldBounds(playerid, 116.7788, -70.06725, 105.1009, -116.7788); TimeInHay[playerid] = GetTickCount(); SetPlayerPos(playerid, 0, 6.5, 3.2); SetPlayerFacingAngle( playerid, 135 ); SetPlayerVirtualWorld(playerid, 50); ResetPlayerWeapons(playerid); return 1; } if(JoinedHay[playerid] == 1) { JoinedHay[playerid] = 0; SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000); TextDrawHideForPlayer(playerid,HAYTD[playerid]); SpawnPlayer(playerid); return 1; } return 1; } return 0; } RestartEveryThing () { new xq, yq, zq; new Number; Speed_xy = 2000 / (HAY_Z + 1); Speed_z = 1500 / (HAY_Z + 1); for (new i=0 ; i<MAX_PLAYERS ; i++) { if (IsPlayerConnected (i)) { WhatLevel = 0; } } for (xq=0 ; xq<HAY_X ; xq++) { for (yq=0 ; yq<HAY_Y ; yq++) { for (zq=0 ; zq<HAY_Z ; zq++) { Matrix[xq][yq][zq] = 0; } } } for (Number=0 ; Number<HAY_B ; Number++) { do { xq = random (HAY_X); yq = random (HAY_Y); zq = random (HAY_Z); } while (Matrix[xq][yq][zq] != 0); Matrix[xq][yq][zq] = 1; Hays[Number] = CreateObject (ID_HAY_OBJECT, xq*(-4), yq*(-4), (zq+1)*3, 0.0, 0.0, random (2)*180,50); } Center_x = (HAY_X + 1) * -2; Center_y = (HAY_Y + 1) * -2; CreateObject (ID_HAY_OBJECT, Center_x, Center_y, HAY_Z*3 + 3, 0, 0, 0,50); SetTimer (\"TimerMove\", 100, 0); SetTimer (\"TDScore\", 1000, 1); } public TimerMove () { new rand; new Hay; new Move = -1; new xq, yq, zq; new Float:x2, Float:y2, Float:z2; new Timez; new Float:Speed; rand = random (HAY_B); Hay = Hays[rand]; if(IsObjectMoving(Hay)) { SetTimer (\"TimerMove\", 200, 0); return 1; } Move = random (6); GetObjectPos (Hay, x2, y2, z2); xq = floatround (x2/-4.0); yq = floatround (y2/-4.0); zq = floatround (z2/3.0)-1; if ((Move == 0) && (xq != 0) && (Matrix[xq-1][yq][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); xq = xq - 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2+4.0, y2, z2, Speed); } else if ((Move == 1) && (xq != HAY_X-1) && (Matrix[xq+1][yq][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); xq = xq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2-4.0, y2, z2, Speed); } else if ((Move == 2) && (yq != 0) && (Matrix[xq][yq-1][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); yq = yq - 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2+4.0, z2, Speed); } else if ((Move == 3) && (yq != HAY_Y-1) && (Matrix[xq][yq+1][zq] == 0)) { Timez = 4000 - Speed_xy * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); yq = yq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2-4.0, z2, Speed); } else if ((Move == 4) && (zq != 0) && (Matrix[xq][yq][zq-1] == 0)) { Timez = 3000 - Speed_z * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); zq = zq - 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2, z2-3.0, Speed); } else if ((Move == 5) && (zq != HAY_Z-1) && (Matrix[xq][yq][zq+1] == 0)) { Timez = 3000 - Speed_z * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); zq = zq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2, z2+3.0, Speed); } else if ((Move == 6) && (zq != HAY_Z-1) && (Matrix[xq][yq][zq+1] == 0)) { Timez = 3000 - Speed_z * zq; Speed = SPEED_FACTOR / float (Timez); SetTimerEx (\"FinishTimer\", Timez, 0, \"iiii\", rand, xq, yq, zq); zq = zq + 1; Matrix[xq][yq][zq] = 1; MoveObject (Hay, x2, y2, z2+3.0, Speed); } SetTimer (\"TimerMove\", 200, 0); return 1; } //============================================================================== public FinishTimer (id, xq, yq, zq) { Matrix[xq][yq][zq] = 0; } //============================================================================== public TimerScore () { new Float:xq, Float:yq, Float:zq; for (new i=0 ; i<MAX_PLAYERS ; i++) { if (IsPlayerConnected (i)) { GetPlayerPos (i, xq, yq, zq); if (xq<=2.0 && xq>=-15.0 && yq<=2.0 && yq>=-15.0) { new Level = (floatround (zq)/3) - 1; WhatLevel = Level; } else { WhatLevel = 0; } } } } public TDScore() { TimerScore(); new Level,string[256],PlayerN[MAX_PLAYER_NAME]; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(JoinedHay == 1) { new tH,tM,tS; new TimeStamp = GetTickCount(); new TotalRaceTime = TimeStamp - TimeInHay; ConvertTime(var, TotalRaceTime, tH, tM, tS); Level = WhatLevel; format(string,sizeof(string),\"~h~~y~Hay Minigame~n~~r~Level: ~w~%d/31 ~n~~r~Time: ~w~%02d:%02d\\ \",Level,tH,tM,tS); TextDrawSetString(HAYTD, string); TextDrawShowForPlayer(i, HAYTD); if(WhatLevel == 31) { GetPlayerName(i, PlayerN, sizeof(PlayerN)); format(string, sizeof(string),\"[HAY] %s Finished The Hay Minigame In %02d Min %02d Sec\", PlayerN,tH,tM,tS); SendClientMessageToAll(ORANGE,string); TextDrawHideForPlayer(i, HAYTD); SetPlayerPos(i,0,0,0); SpawnPlayer(i); } } if(JoinedHay != 1) { TextDrawHideForPlayer(i, HAYTD); } } } return 1; }
11
« Dátum: 2013. augusztus 14. - 16:33:26 »
Helló all! Szeretnék bemutatkozni elõször is a nevem, Hankok. 2 éve sa-mpezek, ezen belül is a [HUN]Stuntlife szerveren.
Ennyit magamról.
Leírás:
Ez egy kisebb map, ami sf (san fiero) városában található. Ezt a kis mappot unatkozásból csináltam, nem a legprofibb, nem a legszebb, de azért nekem megfelel, haverokkal nagyon sokat hülyültünk rajta!
KÉPEK
(a képek, kepfeltoltes.hu vannak feltoltve).
http://www.kepfeltoltes.hu/view/130814/gta_sa_2013-08-14_16-56-03-175_www.kepfeltoltes.hu_.jpg http://www.kepfeltoltes.hu/view/130814/gta_sa_2013-08-14_16-56-12-556_www.kepfeltoltes.hu_.jpg http://www.kepfeltoltes.hu/view/130814/gta_sa_2013-08-14_16-56-22-927_www.kepfeltoltes.hu_.jpg http://www.kepfeltoltes.hu/view/130814/gta_sa_2013-08-14_16-56-30-657_www.kepfeltoltes.hu_.jpg http://www.kepfeltoltes.hu/view/130814/gta_sa_2013-08-14_16-56-36-353_www.kepfeltoltes.hu_.jpg a map fájlokat feltöltöttem SOLIDFILES.COM-ra
(azért h ha valamit át akartok alakítani rajta.)
http://www.solidfiles.com/d/b314af4f2c/ CreateDynamicObject(3578, -2056.80005, -127.5, 35.1, 0, 0, 90); CreateDynamicObject(3578, -2047.80005, -117.3, 35.1, 0, 0, 90); CreateDynamicObject(3578, -2047.80005, -137.89999, 35.1, 0, 0, 90); CreateDynamicObject(3578, -2056.7998, -117.19922, 35.1, 0, 0, 90); CreateDynamicObject(3578, -2047.7998, -127.59961, 35.1, 0, 0, 90); CreateDynamicObject(3578, -2058.6001, -148.5, 35.1, 0, 0, 90); CreateDynamicObject(3578, -2068.19995, -148.2, 35.1, 0, 0, 88); CreateDynamicObject(3578, -2053.19922, -143.2998, 35.1, 0, 0, 0); CreateDynamicObject(3578, -2062.19922, -132.7998, 35.1, 0, 0, 357.995); CreateDynamicObject(3578, -2067.7998, -138, 35.1, 0, 0, 87.995); CreateDynamicObject(3578, -2043.09998, -154.5, 35.1, 0, 0, 178); CreateDynamicObject(3578, -2068.6001, -158.3, 35.1, 0, 0, 87.995); CreateDynamicObject(3578, -2053.19995, -164.3, 35.1, 0, 0, 177.995); CreateDynamicObject(3578, -2063.39941, -163.89941, 35.1, 0, 0, 177.99); CreateDynamicObject(3578, -2053.2998, -154.09961, 35.1, 0, 0, 177.995); CreateDynamicObject(3578, -2037.5, -149.3, 35.1, 0, 0, 267.245); CreateDynamicObject(3578, -2043, -164.7, 35.1, 0, 0, 177.99); CreateDynamicObject(3578, -2032.80005, -165.10001, 35.1, 0, 0, 177.99); CreateDynamicObject(3578, -2027.19995, -159.89999, 35.1, 0, 0, 267.99); CreateDynamicObject(3578, -2026.80005, -149.60001, 35.1, 0, 0, 267.984); CreateDynamicObject(3578, -2037, -139, 35.1, 0, 0, 267.242); CreateDynamicObject(3578, -2031.40002, -133.8, 35, 0, 0, 177.242); CreateDynamicObject(3578, -2016, -160.39999, 35.1, 0, 0, 89.242); CreateDynamicObject(3578, -2021.09961, -134.2998, 35.1, 0, 0, 177.242); CreateDynamicObject(3578, -2015.7998, -139.7998, 35.1, 0, 0, 89.242); CreateDynamicObject(3578, -2015.89941, -150.09961, 35.1, 0, 0, 89.242); CreateDynamicObject(3578, -2016.19995, -170.7, 35.1, 0, 0, 89.242); CreateDynamicObject(3578, -2062.6001, -176.89999, 35.1, 0, 0, 1.242); CreateDynamicObject(3578, -2021.5, -176.09961, 35.1, 0, 0, 1.241); CreateDynamicObject(3578, -2031.7998, -176.2998, 35.1, 0, 0, 1.241); CreateDynamicObject(3578, -2042.09961, -176.5, 35.1, 0, 0, 1.241); CreateDynamicObject(3578, -2052.39941, -176.69922, 35.1, 0, 0, 1.241); CreateDynamicObject(3578, -2068.19995, -182.3, 35.1, 0, 0, 87.241); CreateDynamicObject(3578, -2073.5, -163.5, 35.1, 0, 0, 177.99); CreateDynamicObject(3578, -2079.1001, -168.60001, 35.1, 0, 0, 267.99); CreateDynamicObject(3578, -2079.5, -178.7, 35.1, 0, 0, 267.984); CreateDynamicObject(3578, -2079.8999, -189, 35.1, 0, 0, 267.984); CreateDynamicObject(3578, -2064.5, -195, 35.1, 0, 0, 357.984); CreateDynamicObject(3578, -2052.80005, -188.5, 35.1, 0, 0, 177.237); CreateDynamicObject(3578, -2074.69922, -194.59961, 35.1, 0, 0, 357.979); CreateDynamicObject(3578, -2059.1001, -220.8, 35.1, 0, 0, 269.979); CreateDynamicObject(3578, -2063.09961, -188, 35.1, 0, 0, 177.231); CreateDynamicObject(3578, -2047.69995, -194.2, 35.1, 0, 0, 87.231); CreateDynamicObject(3578, -2048.19995, -204.3, 35.1, 0, 0, 87.226); CreateDynamicObject(3578, -2059.09961, -200.2998, 35.1, 0, 0, 269.978); CreateDynamicObject(3578, -2043.09998, -209.89999, 35.1, 0, 0, 177.226); CreateDynamicObject(3578, -2059.09961, -210.5, 35.1, 0, 0, 269.978); CreateDynamicObject(3578, -2064.1001, -226.3, 35.1, 0, 0, 359.978); CreateDynamicObject(3578, -2033.30005, -226.3, 35.1, 0, 0, 359.978); CreateDynamicObject(3578, -2043.59961, -226.2998, 35.1, 0, 0, 359.978); CreateDynamicObject(3578, -2027.80005, -220.89999, 35.1, 0, 0, 89.978); CreateDynamicObject(3578, -2037.5, -204.8, 35.1, 0, 0, 267.22); CreateDynamicObject(3578, -2027.80005, -210.7, 35.1, 0, 0, 89.973); CreateDynamicObject(3578, -2027.80005, -200.5, 35.1, 0, 0, 89.973); CreateDynamicObject(3578, -2037, -194.60001, 35.1, 0, 0, 267.215); CreateDynamicObject(3578, -2031.40002, -189.3, 35.1, 0, 0, 179.215); CreateDynamicObject(3578, -2021.09998, -189.5, 35.1, 0, 0, 179.214); CreateDynamicObject(3578, -2015.59998, -195, 35.1, 0, 0, 271.214); CreateDynamicObject(3578, -2015.19995, -215.5, 35.1, 0, 0, 271.214); CreateDynamicObject(3578, -2015.39941, -205.2998, 35.1, 0, 0, 271.214); CreateDynamicObject(3578, -2015, -225.60001, 35.1, 0, 0, 271.214); CreateDynamicObject(3578, -2014.80005, -235.7, 35.1, 0, 0, 271.214); CreateDynamicObject(3578, -2020, -241.2, 35.1, 0, 0, 183.214); CreateDynamicObject(3091, -2077.1001, -111.6, 40.2, 0, 0, 0); CreateDynamicObject(3578, -2030.30005, -241.8, 35.1, 0, 0, 183.214); CreateDynamicObject(3578, -2040.5, -242.3, 35.1, 0, 0, 183.214); CreateDynamicObject(3578, -2061, -242.60001, 35.1, 0, 0, 359.978); CreateDynamicObject(3578, -2050.69922, -242.59961, 35.1, 0, 0, 359.978); CreateDynamicObject(3578, -2053.7998, -226.2998, 35.1, 0, 0, 359.978); CreateDynamicObject(3578, -2066.5, -247.89999, 35.1, 0, 0, 87.978); CreateDynamicObject(3578, -2072.80005, -227.2, 35.1, 0, 0, 9.978); CreateDynamicObject(3578, -2083.1001, -234.3, 35.1, 0, 0, 47.976); CreateDynamicObject(3578, -2077.7998, -229.5, 35.1, 0, 0, 25.972); CreateDynamicObject(3578, -2086.19995, -241.8, 35.1, 0, 0, 79.972); CreateDynamicObject(3578, -2087, -248.89999, 35.1, 0, 0, 85.969); CreateDynamicObject(3578, -2085.69995, -256.20001, 35.1, 0, 0, 107.968); CreateDynamicObject(3578, -2081.6001, -262.60001, 35.1, 0, 0, 131.963); CreateDynamicObject(3578, -2075.19995, -267.5, 35.1, 0, 0, 151.962); CreateDynamicObject(3578, -2067.3999, -269.20001, 35.1, 0, 0, 177.957); CreateDynamicObject(3578, -2054.6001, -269.79999, 35.1, 0, 0, 177.957); CreateDynamicObject(3578, -2061.19995, -253.5, 35.1, 0, 0, 177.957); CreateDynamicObject(3578, -2054.69995, -253.8, 35.1, 0, 0, 177.957); CreateDynamicObject(14826, -2042.90002, -278, 35.1, 0, 0, 0); CreateDynamicObject(16092, -2052.5, -115.1, 34.3, 0, 0, 90); CreateDynamicObject(3578, -2057.89941, -269.59961, 35.1, 0, 0, 177.957); CreateDynamicObject(16092, -2048.59961, -262.19922, 34.3, 0, 0, 0); CreateDynamicObject(3524, -2056.80005, -132.89999, 37.2, 0, 0, 48); CreateDynamicObject(3524, -2058.6001, -153.89999, 37.2, 0, 0, 317.999); CreateDynamicObject(3524, -2058.6001, -143.2, 37.2, 0, 0, 223.994); CreateDynamicObject(3524, -2037.80005, -154.7, 37.2, 0, 0, 49.989); CreateDynamicObject(3524, -2027.40002, -165.2, 37.2, 0, 0, 49.988); CreateDynamicObject(3524, -2067.8999, -177.10001, 37.2, 0, 0, 227.988); CreateDynamicObject(3524, -2068.30005, -187.5, 37.2, 0, 0, 309.983); CreateDynamicObject(3524, -2059.30005, -195.2, 37.2, 0, 0, 141.979); CreateDynamicObject(3524, -2048.3999, -209.60001, 37.2, 0, 0, 315.976); CreateDynamicObject(3524, -2037.80005, -210, 37.2, 0, 0, 47.972); CreateDynamicObject(3524, -2027.90002, -226.3, 37.2, 0, 0, 47.972); CreateDynamicObject(3524, -2066.19995, -242.60001, 37.2, 0, 0, 249.972); CreateDynamicObject(3524, -2066.5, -253.3, 37.2, 0, 0, 297.966); CreateDynamicObject(16092, -2063.30005, -148.89999, 34.3, 0, 0, 90); CreateDynamicObject(16092, -2073.69995, -183.2, 34.3, 0, 0, 88); CreateDynamicObject(16092, -2053.6001, -202.10001, 34.3, 0, 0, 87.995); CreateDynamicObject(16092, -2040.40002, -234.7, 34.3, 0, 0, 183.995); CreateDynamicObject(9833, -2044.80005, -148.2, 37.5, 0, 0, 0); CreateDynamicObject(16776, -2056.3999, -182.89999, 34.3, 0, 0, 0); CreateDynamicObject(16778, -2043.09998, -207.7, 34.3, 0, 0, 0); CreateDynamicObject(3277, -2020.19995, -181.60001, 34.3, 0, 0, 80); CreateDynamicObject(3884, -2020.40002, -181.7, 34.3, 0, 0, 144); CreateDynamicObject(1442, -2065.5, -275.39999, 34.9, 0, 0, 0); CreateDynamicObject(12957, -2062.3999, -248.2, 35.2, 0, 0, 0); CreateDynamicObject(3593, -2093, -215.2, 35, 0, 0, 0); CreateDynamicObject(3594, -2091.6001, -248.8, 35, 0, 0, 0); CreateDynamicObject(13591, -2069.8999, -210.3, 34.7, 0, 0, 0); CreateDynamicObject(18248, -2082.3999, -159, 42.4, 0, 0, 158); CreateDynamicObject(18249, -2081.1001, -132.2, 41.1, 0, 0, 0); CreateDynamicObject(3525, -2065.5, -275.39999, 34, 0, 0, 0); Dupla hozzászólás automatikusan összefûzve. ( 2013. augusztus 15. - 13:40:45 )
Oldalak: [1 ]