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 - David123
1
« Dátum: 2013. július 31. - 15:01:15 »
CMD:admins(playerid) { SendClientMessage(playerid, COLOR_LIME, \"_________[Jelenlévõ Adminok]____________\"); for(new i; i < MAX_PLAYERS; i++) { if(GetPVarInt(i, \"AdminLvl\") > 0) { new szFormat[128]; format(szFormat, 128, \"%s - Szint: %i - Rang: %s\", pName(i), GetPVarInt(i, \"AdminLvl\"), alvl[GetPVarInt(i, \"AdminLvl\")]); SendClientMessage(playerid, -1, szFormat); } } return 1; } stock pName(playerid) { new n[24]; GetPlayerName(playerid, n, 24); return n; } Tessek ,remélem ,hogy jó lesz .
2
« Dátum: 2013. július 31. - 11:44:57 »
sok sikert ! :thumbsup:
3
« Dátum: 2013. július 31. - 11:02:18 »
vegyel egy uj billentyuzetet
4
« Dátum: 2013. július 31. - 11:00:13 »
szep
5
« Dátum: 2013. július 31. - 10:59:12 »
jo lett nekem tetszik
6
« Dátum: 2013. július 31. - 10:58:28 »
szerintem jo lett
7
« Dátum: 2013. július 31. - 10:57:16 »
grt
8
« Dátum: 2013. július 31. - 10:55:46 »
Jo lett .
9
« Dátum: 2013. július 30. - 19:26:08 »
miert ? .....
10
« Dátum: 2013. július 30. - 17:30:54 »
Sziasztok keszitettem egy dialogos teleportot. keszitesi ido 5 perc Relem tetszeni fog . [/#include <a_samp> #define DIALOG_RM 121 #if defined FILTERSCRIPT CMD:teles(playerid,params[]) { ShowPlayerDialog(playerid,DIALOG_RM,DIALOG_STYLE_LIST,\"Teleportok\",\"LS\\n sf\\n lv\\n lsair\\n raktar\\n KACC depo\\n KACC raktar\\n Los Antos Dokk\\n banya\\n doherty\\n El corona depo\\n Las paysadas\\n LVA .\",\"Teleportálok\",\"Megse\"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if ( dialogid == DIALOG_RM ) { if( !response ) { if( listitem == 0) { SetPlayerPos(playerid,2485.8440,-1669.4956,13.3359); } if( listitem == 1) { SetPlayerPos(playerid,1972.8893,290.9427,35.1719); } if( listitem == 2) { SetPlayerPos(playerid,2153.1775,1671.9844,10.6875); } if( listitem == 3) { SetPlayerPos(playerid,1962.4187,-2501.7600,13.5391); } if( listitem == 4) { SetPlayerPos(playerid,1052.0804,2110.5264,10.8203); } if( listitem == 5) { SetPlayerPos(playerid,2539.2441,2807.7554,10.8203); } if( listitem == 6) { SetPlayerPos(playerid,2806.1685,2580.4419,10.8203); } if( listitem == 7) { SetPlayerPos(playerid,2592.3862,-2206.1101,17.3572); } if( listitem == { SetPlayerPos(playerid,332.1386,899.7029,24.7752); } if( listitem == 9) { SetPlayerPos(playerid,2135.3462,-247.5000,35.9922); } if( listitem == 10) { SetPlayerPos(playerid,1766.8333,-2040.7000,13.5272); } if( listitem == 11) { SetPlayerPos(playerid,545.6445,2594.0000,53.5156); } if( listitem == 12) { SetPlayerPos(playerid,1457.0000,975.8350,10.8203); } #endif]
11
« Dátum: 2013. július 30. - 12:04:41 »
Udv all Keszitettem egy szriptet amiben admin parancsok talalhatok Keszitesi ido : 30 perc Tesztelve [/#include <a_samp> #include <sscanf> #include <dini> #if defined FILTERSCRIPT if(strcmp(cmd, \"/stats\", true) == 0) { tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), \"level\"); new vehicle[MAX_PLAYERS], business[MAX_PLAYERS]; if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"/stats [playerid]\"); return 1; } if(logged[playerid] == 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Jelentkezz be a parancs hasznalassahoz!\"); return 1; } if(PlayerInfo[playerid][pAdmin] < 2) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"2-es szintu adminnak kene lenned ,hogy ezt a parancsot hasznalhasd!\"); return 1; } if(strcmp(cmd, \"/ban\", true) == 0) { tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), \"level\"); PlayerInfo[giveplayerid][pAdmin] = dini_Int(udb_encode(giveplayer), \"level\"); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Hasznalat: /ban [playerid]\"); return 1; } if(logged[playerid] == 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Jelentkezz be a parancs hasznalasahoz !\"); return 1; } if(strcmp(cmd, \"/kick\", true) == 0) { tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), \"level\"); PlayerInfo[giveplayerid][pAdmin] = dini_Int(udb_encode(giveplayer), \"level\"); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Hasznalat: /kick [playerid]\"); return 1; } if(logged[playerid] == 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Jeletnkezz be a parancs hasznalasahoz!\"); return 1; } if(strcmp(cmd, \"/jail\", true) == 0) { tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), \"level\"); PlayerInfo[giveplayerid][pAdmin] = dini_Int(udb_encode(giveplayer), \"level\"); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Hasznalat: /jail [playerid]\"); return 1; } if(logged[playerid] == 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Jelentkezz be a parancs hasznalasahoz!\"); return 1; } if(strcmp(cmd, \"/unjail\", true) == 0) { tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), \"level\"); PlayerInfo[giveplayerid][pAdmin] = dini_Int(udb_encode(giveplayer), \"level\"); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Hasznalat: /unjail [playerid]\"); return 1; } if(strcmp(cmd, \"/freeze\", true) == 0) { tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), \"level\"); PlayerInfo[giveplayerid][pAdmin] = dini_Int(udb_encode(giveplayer), \"level\"); if(logged[playerid] == 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Jelentkezz be a parancs hasznalasahoz!\"); return 1; } if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Hasznalat: /freeze [playerid]\"); return 1; } if(strcmp(cmd, \"/unfreeze\", true) == 0) { tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), \"level\"); PlayerInfo[giveplayerid][pAdmin] = dini_Int(udb_encode(giveplayer), \"level\"); if(logged[playerid] == 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Jelentkezz be a parancs hasznalasahoz!\"); return 1; } if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Hasznalat: /unfreeze [playerid]\"); return 1; } if(strcmp(cmd, \"/givemoney\", true) == 0) { tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), \"level\"); if(logged[playerid] == 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Jelentkezz be a parancs hasznalasahoz!\"); return 1; } if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Hasznalat: /givemoney [playerid] [Mennyiseg]\"); return 1; } moneys[playerid] = strval(tmp); if (IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerMoney(playerid); GivePlayerMoney(giveplayerid, moneys[playerid]); format(string, sizeof(string), \"Te adtal penzt $%d jatekosnak %s (id: %d).\",moneys[playerid],giveplayer,giveplayerid); SendClientMessage(playerid, COLOR_ORANGE, string); format(string, sizeof(string), \"Te adtal penzt $%d a jatekosnak %s (id: %d).\", moneys[playerid], sendername, playerid); SendClientMessage(giveplayerid, COLOR_ORANGE, string); } else { format(string, sizeof(string), \"%d a jatekos nem onlie .\", giveplayerid); SendClientMessage(playerid, COLOR_BRIGHTRED, string); } return 1; } if(strcmp(cmd, \"/setadmin\", true) == 0) { tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), \"level\"); PlayerInfo[giveplayerid][pAdmin] = dini_Int(udb_encode(giveplayer), \"level\"); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Hasznalat: /setadmin [playerid] [level]\"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"USAGE: /setadmin [playerid] [level]\"); return 1; } if(logged[playerid] == 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Jelentkezz be a parancs hasznalasahoz!\"); return 1; } PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), \"level\"); if (PlayerInfo[playerid][pAdmin] < 1) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"5 os adminnak kell legyel ,hogy a parancsot hasznalhasd!\"); return 1; } level[playerid] = strval(tmp); if(level[playerid] < 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Ervenytelen szint\"); return 1; } if(level[playerid] > 2) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Invalid Admin Level -=(0 = no admin/1 = min admin/2 = full admin)=-\"); return 1; } if(level[playerid] == PlayerInfo[giveplayerid][pAdmin]) { format(string, sizeof(string), \" %d .\", level[playerid]); SendClientMessage(playerid, COLOR_BRIGHTRED, string); return 1; } if (IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); dini_IntSet(udb_encode(giveplayer), \"level\", level[playerid]); format(string, sizeof(string), \"Adminisztrator %s (id: %d), %s (id: %d) %d .\",sendername,playerid,giveplayer,giveplayerid,level[playerid]); SendClientMessageToAll(COLOR_ORANGE, string); format(string, sizeof(string), \" %s (id: %d), %d.\", giveplayer,giveplayerid, level[playerid]); SendClientMessage(playerid, COLOR_ORANGE, string); format(string, sizeof(string), \" %d %s (id: %d).\", level[playerid], sendername, playerid); SendClientMessage(giveplayerid, COLOR_ORANGE, string); PlayerInfo[giveplayerid][pAdmin] = dini_Int(udb_encode(giveplayer), \"level\"); } else { format(string, sizeof(string), \"ID:%d a jatekos nem onlie.\", giveplayerid); SendClientMessage(playerid, COLOR_BRIGHTRED, string); } return 1; } if(strcmp(cmd, \"/login\", true) == 0) { if(Spawned[playerid] == 0) { return 1; } if(logged[playerid] == 1) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Sikeresen bejelentkeztel\"); return 1; } tmp = strtok(cmdtext, idx); GetPlayerName(playerid, playername, sizeof(playername)); if(!strlen(tmp)) SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Hasznalat: /login [password]\"); else { if (dini_Exists(udb_encode(playername))) { tmp2 = dini_Get(udb_encode(playername), \"password\"); if (udb_hash(tmp) != strval(tmp2)) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Helytelen jelszo.\"); } else { logged[playerid] = 1; dini_Set(udb_encode(playername),\"pass\",tmp); new tmp4[256]; new Float:x, Float:y, Float:z; new Float:a; playercount[playerid] = dini_Int(udb_encode(playername), \"vehicleresetcount\"); if(playercount[playerid] != gVC) { dini_IntSet(udb_encode(playername), \"carowned\", 0); dini_IntSet(udb_encode(playername), \"car\", 0); dini_IntSet(udb_encode(playername), \"notified\", 1); } x = dini_Int(udb_encode(playername), \"x\"); y = dini_Int(udb_encode(playername), \"y\"); z = dini_Int(udb_encode(playername), \"z\"); a = dini_Int(udb_encode(playername), \"a\"); carowned[playerid] = dini_Int(udb_encode(playername), \"carowned\"); moneys[playerid] = dini_Int(udb_encode(playername), \"money\"); if(moneys[playerid] < 10000) { bank[playerid] = dini_Int(udb_encode(playername), \"bank\"); if(bank[playerid] > 20000) { } if(bank[playerid] < 20000) { moneys[playerid] = 10000; } GivePlayerMoney(playerid,moneys[playerid]); } if(moneys[playerid] >= 10000) { GivePlayerMoney(playerid,moneys[playerid]); } tmp4 = dini_Get(udb_encode(playername), \"bank\"); PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(playername), \"level\"); bank[playerid] = strval(tmp4); SetPlayerPos(playerid,x,y,z); SetPlayerFacingAngle(playerid,a); biznote[playerid] = dini_Int(udb_encode(playername), \"bizsold\"); carnote[playerid] = dini_Int(udb_encode(playername), \"carsold\"); if(biznote[playerid] == 1) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"~~~~~~~...........::::::::::::.........!\"); dini_IntSet(udb_encode(playername), \"bizsold\", 0); } if(carnote[playerid] == 1) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"~~~~~........:::::::::........!\"); dini_IntSet(udb_encode(playername), \"carsold\", 0); } } } else { format(string, sizeof(string), \"Nem vagy %s, regisztralva. Kerlek regisztralj /register [password].\", playername); SendClientMessage(playerid, COLOR_BRIGHTRED, string); } } return 1; } if(strcmp(cmd, \"/register\", true) == 0) { if(Spawned[playerid] == 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, \"Spawnolj le a parancs hasznalatahoz /login /register\"); return 1; } tmp = strtok(cmdtext, idx); GetPlayerName(playerid, playername, sizeof(playername)); if(20 < strlen(tmp) || strlen(tmp) < 5) { SendClientMessage(playerid, COLOR_YELLOW, \"A jelszo minimum 5-10 betubol aljon.\"); return 1; } if(!strlen(tmp)) SendClientMessage(playerid, COLOR_YELLOW, \"Hasznalat: /register [password]\"); else { if (!dini_Exists(udb_encode(playername))) { dini_Create(udb_encode(playername)); dini_IntSet(udb_encode(playername), \"password\", udb_hash(tmp)); dini_Set(udb_encode(playername),\"pass\",tmp); new Float:x, Float:y, Float:z; new Float:a; GetPlayerFacingAngle(playerid,a); dini_IntSet(udb_encode(playername), \"a\", floatround(a)); GetPlayerPos(playerid,x,y,z); dini_IntSet(udb_encode(playername), \"x\", floatround(x)); dini_IntSet(udb_encode(playername), \"y\", floatround(y)); dini_IntSet(udb_encode(playername), \"z\", floatround(z)); dini_IntSet(udb_encode(playername), \"carowned\", 0); dini_IntSet(udb_encode(playername), \"car\", 0); dini_IntSet(udb_encode(playername), \"level\", 0); format(string, sizeof(string), \"--- %s (id: %d) Felhasznalo. Jelszo: %s.\", playername, playerid, tmp); printf(string); format(string, sizeof(string), \"Keszitettel egy felhasznalot %s ! Jelentkezz be a jelszoval ! %s.\", playername, tmp); SendClientMessage(playerid, COLOR_YELLOW, string); } else { format(string, sizeof(string), \"%s Regisztralt.\", playername,tmp); SendClientMessage(playerid, COLOR_BRIGHTRED, string); } } return 1; } CMD:goto(playerid,params[]) { if(IsPlayerConnected(playerid)) { { new id; if(!IsPlayerAdmin(playerid)) return msg(playerid,red,\"Nem vagy admin!\"); if(sscanf(params,\"u\",id)) return SendClientMessage(playerid,red,\"Használat: /goto [playerID]\"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, red, \"Nem aktív játékos!\"); new Float:x,Float:y,Float:z; GetPlayerPos(id,x,y,z); if(IsPlayerInAnyVehicle(playerid)) { new carid = GetPlayerVehicleID(playerid); SetVehiclePos(carid, x+3,y,z); PutPlayerInVehicle(playerid, carid, 1); } else { SetPlayerPos(playerid,x,y,z); } } } return 1; } CMD:get(playerid,params[]) { if(IsPlayerConnected(playerid)) { { new id; if(!IsPlayerAdmin(playerid)) return msg(playerid,red,\"Nem vagy admin!\"); if(sscanf(params,\"u\",id)) return SendClientMessage(playerid,red,\"Használat: /get [PLayerID]\"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, red, \"Nem aktív játékos!\"); new Float:x,Float:y,Float:z; GetPlayerPos(id,x,y,z); if(IsPlayerInAnyVehicle(id)) { new carid = GetPlayerVehicleID(id); SetVehiclePos(carid, x+3,y,z); PutPlayerInVehicle(id, carid, 1); } else { SetPlayerPos(id,x,y,z); } } } return 1; } CMD:asay(playerid, params[]) { { new say[128]; new nev[MAX_PLAYER_NAME]; GetPlayerName(playerid,nev,sizeof(nev)); new string[128]; if(!IsPlayerAdmin(playerid)) return msg(playerid,red,\"Nem vagy admin!\"); if(sscanf(params,\"s[128]\",say)) return msg(playerid,green,\"Használat: /asay [szöveg]\"); else { format(string,sizeof(string),\"Admin:%s:%s\",nev,say); msgall(red,string); } } return 1; } CMD:ahelp(playerid, params[]) { ShowPlayerDialog(playerid,DIALOG_RM,DIALOG_STYLE_LIST,\"Admin help:\",\"/ban\\n/kick\\n/freeze\\n/unfreeze\\n/asay\\n/goto\\n/get\\n/setadmin\\n/givemonney\\n/jail\\n/unjail\\n/stats); } #endif]
12
« Dátum: 2013. július 29. - 20:27:56 »
BoOy kosz hogy kisegitettel [mod]Megkérnék minden kedves témanyitót, ha kérdésére/kérésére választ kapott, akkor legyen szíves használni, a \"Téma megoldva\" funkciót![/mod]
13
« Dátum: 2013. július 29. - 20:00:34 »
UDV All [ALAP_DOLGOK] 1.#include <a_samp> <<<Ez egy include amit a pawno mappaban es includek kozott talalhatunk enelkul nem tudunk scriptet kesziteni !! <<<ebbol tobb van . 2.#define _red \"{FF0000}\" <<< definizalo ,szin definalo . <<< tudunk definalni dolgokat vele 3. public OnPlayerConnect(playerid) amikor a jatekos csatlakozik 1 pelda : public OnPlayerConnect(playerid) { ShowPlayerDialog(playerid, DIALOG_REG, DIALOG_STYLE_INPUT,\"Regisztráció folyamatban\",\"Írj be egy jelszót a regisztrációhoz!\",\"Regisztrálás\",\"Bezár\"); } Ez egy regisztracio ,figyelem nem teljes a regisztracio Vagy meg lehet : public OnPlayerConnect(playerid) { SendClientMessage(playerid,-1,\"Üdvvozollek a szerveren. Jo jatekot \'\"); <<<<ha valaki csatlakozik kirja ezt . return 1; } 4.public OnPlayerSpawn(playerid) <<<ez az ha a jatekos lespawnol mutatok nehany peldat public OnPlayerSpawn(playerid) GivePlayerWeapon(playerid, 35, 500); <<< amikor lespawnol ad egy fegyvert fegyverid:35 , tolteny 500 . SetplayerHealth(playerid,50); <<<<bealitja a jatekos eleterejet 50 re . SetPlayerArmour(playerid,100); <<< bealitja a jatekos pancelzatat 100 ra . SendClientMessage(playerid,\"Sikeresen lespawnoltal !!!\"); <<< kuld egy uzenetet a jatekosnak . 5.public OnPlayerDeath(playerid, killerid, reason) <<< ha a jatekos meghal . pl: public OnPlayerDeath(playerid, killerid, reason) { SendClientMessage(playerid,\"Meghaltal,ezert elvesztetted a fegyvereidet !\"); <<<kuld egy uzenetet ResetPlayerWeapons(playerid); <<<< elveszi a fegyvereidet return 1; } 6.public OnPlayerCommandText <<< parancsfeldolgozo peldak : public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/raktar\", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,1052.0804,2110.5264,10.8203); <<<< ez egy teleport ha beirjuk /raktar eltereportal a raktarhoz SendClientMessage(playerid,-1,\"Elteleportáltál a raktarhoz \"); <<<< uzenetet kuld . return 1; } 1052.0804,2110.5264,10.8203 ez egy kordinata !!! Ilyet ugy tudunk csinalni hogy belepunk a samp_debug ba es ot beirjuk hogy /save es kesz elmentette a kordinatat majd keressuk meg a savedpositions txt -t ezt dokumentumok>>>GTA san andreas user files >>>> samp es ott van ezutan kiadja a kordinatat ahol elmentettuk : AddPlayerClass(0,1466.7280,-886.4625,56.3175,40.4946,0,0,0,0,0,0); ebbol :1466.7280,-886.4625,56.3175 enyit ki kell masolnunk vagyis 6 reszt . ha autoba mentjuk ell akkor:AddStaticVehicle Parancsot tobbfelekeppen lehet letrehozni : CMD:parancs(playerid,params[]) es public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/parancs\", cmdtext, true, 10) == 0) Dialog keszitese : CMD:szabalyok(playerid,params[]) { ShowPlayerDialog(playerid,DIALOG_RM,DIALOG_STYLE_LIST,\"Szabalyok:\"Hack=BAN\\n hirdetes=ban,stb\",\"elfogad\",\"elutasit\" } \\n = uj sor ha beirom /szabalyok kiad egy dialogot . Kocsijavito keszites : CMD:javit (playerid, params[]) { if(!IsPlayerInAnyVehicle(playerid)) return msg(playerid, SZIN_PIROS, \"Nem vagy jármûben!\"); <<< ha nem vagy jarmuben RepairVehicle(GetPlayerVehicleID(playerid)); <<<< megjavitja a jarmuvet msg(playerid, SZIN_LIME, \"Jármûved sikeresen megjavítva!\"); <<< uzenet return 1; } Ha rosz parancs: public OnPlayerCommandPerformed ( playerid, cmdtext [ ], success) { if ( !success ) { return SendClientMessage(playerid, 0xff0000AA, \"Ilyen parancs nem létezik! {33AA33}(/cmds)\"); <<<< kuld egy uzenetet } return 1; } public OnVehicleSpawn(vehicleid) <<< ha a kocsi spawnol SendClientMessage(playerid,\"sikeresen lespawnoltad a kocsit\"); ,<<< uzenet RandomSpawn: new Float:RandomSpawn[3][3] = { {-kordinata}, {kordinata}, {kordinata} }; Enyi lenne a tutorial ,majd keszitek videokat . Remelem tetszik es segitettem valakinek
14
« Dátum: 2013. július 29. - 15:26:31 »
Van ilyen mar es nem is te csinaltad .
15
« Dátum: 2013. július 29. - 11:44:12 »
Probald meg a MTA San Andreas 1.3 at
|