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 - cserko93
1
« Dátum: 2012. december 29. - 21:05:50 »
if (strcmp(\"/nyit\", cmdtext, true, 10) == 0) { MoveObject(sorompo, 1069.8994141,1359,10.5,0,334.9951172,0);//This will move the gate } return 1; } if (strcmp(\"/zar\", cmdtext, true, 10) == 0) { MoveObject(sorompo, 1069.8994141,1359,10.5,0,270,0);//This will move the gate back to the old position } return 1; } C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\basic.pwn(226) : error 010: invalid function or declaration C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\basic.pwn(230) : error 010: invalid function or declaration C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\basic.pwn(232) : error 010: invalid function or declaration C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\basic.pwn(237) : error 010: invalid function or declaration C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\basic.pwn(239) : error 010: invalid function or declaration C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\basic.pwn(242) : error 010: invalid function or declaration C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\basic.pwn(244) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Errors. Hogy kell forgatni az objectet?
2
« Dátum: 2012. december 29. - 20:42:57 »
Sziasztok, valaki meg csinálná nekem azt hogy ezeket az üzeneteket csak valakinek a környékén dobja ki? Valaki belépett a közeledben, Valaki kifagyott a közeledben, Valakit kirúgtak vagy kibanoltak a közeledben, Valaki kilépett a közeledben, public OnPlayerConnect(playerid) { GameTextForPlayer(playerid,\"~r~Udv, jo jatekot!\",3,600);//Announce üdvözlö üzenet! new joiner[128]; format(joiner, 128, \"((%s [%d] belépett.))\", GetPlayerNameEx(playerid), playerid); SendClientMessageToAll(COLOR_BEKILEPES, joiner); return 1; } public OnPlayerDisconnect(playerid,reason) { new string[128]; switch(reason) { case 0: { format(string, sizeof(string), \"((%s [%d] kifagyott.))\", GetPlayerNameEx(playerid), playerid); SendClientMessageToAll(COLOR_BEKILEPES, string); } case 1: { format(string, sizeof(string), \"((%s [%d] kilépett.))\", GetPlayerNameEx(playerid), playerid); SendClientMessageToAll(COLOR_BEKILEPES, string); } case 2: { format(string, sizeof(string), \"((%s [%d] kirúgva.))\", GetPlayerNameEx(playerid), playerid); SendClientMessageToAll(COLOR_BEKILEPES, string); } } return 1; } Gondolom lekell kérni az emberek pozicióját de gõzõm sincs, hogy hogy kell!
3
« Dátum: 2012. december 27. - 23:59:54 »
Lehet-e \"animálni\" a sorompó nyilás zárást mint a kapukét? vagy csak így nyitva van egyszer csak zárva? // hátsó CreateObject(968,-1701.5000000,687.7000122,24.7000008,0.0000000,90.0000000,270.5000000); //object(barrierturn) (1) zarva hatso CreateObject(968,-1701.5000000,687.6992188,24.7000008,0.0000000,33.0000000,270.4998779); //object(barrierturn) (1) nyitva hatso // elsõ CreateObject(968,-1572.1992188,658.6992188,6.8000002,0.0000000,270.0000000,270.0000000); //object(barrierturn) (2) zarva elso CreateObject(968,-1572.1992188,658.6992188,6.8000002,0.0000000,330.0000000,270.0000000); //object(barrierturn) (2) nyitva elso Valaki megtudja nekem, úgy írni, hogy pl elsonyit-zar - hatsonyit-zar animálva? tehát mozogjon ne csak változzon teremjem
4
« Dátum: 2012. december 25. - 13:10:16 »
Sziasztok, keresgéltem a neten, egy MYSQL alapú regisztrálós belépõs rendszert. ámbár sikeresen megcsináltam mindent (picit értek a mysql-hez) de ennek nem a mysql el van baja hanem valami mással ime a kód: KÓD: /* =================================== Advanced MySQL registration system. By Carlton. =================================== */ #include <a_samp> #include <a_mysql> #include <zcmd> #define BLUE 0x0000FFFF #define SQL_HOST \"\" #define SQL_USER \"\" #define SQL_PASSWORD \"\" #define SQL_DB \"\" #define SQL_TABLE \"\" // The table to store the users in. #define SQL_CHECK_ACCOUNT 1 #define SQL_CHECK_IP 2 #define SQL_CHECK_LOGIN 3 #define SQL_REGISTER_PLAYER 4 #define SQL_SAVE_ACCOUNT 5 #define ERROR_MESSAGE1 \"The autologin failed, because your IP address didn\'t match the name.\" #define ERROR_MESSAGE2 \"The password you have given does not match.\" #define REGMSSG \"You have registered a account.\" #define LOGINMSSG1 \"You have logged in.\" #define LOGINMSSG2 \"You have autologged in\" #define function%0(%1) stock%0(%1) //#define AutoLogin // - Remove the // if you want a autologin when a player spawns. //#define Force_Login // - Remove the // if you want to force a player to login and register when that player joins. // Do not use AutoLogin and Force_Login at the same time! new RegistrationSystemConnection, stringsize[256], pname[MAX_PLAYER_NAME]; enum Accinfo { bool:Account, bool:Logged, pip[16], Float: pHealth, Float: pArmour, } new AccountData[MAX_PLAYERS][Accinfo]; enum PA { IP[30], Money, AdminLevel, Float: Health, Float: Armour, Bank } new PlayerAccount[MAX_PLAYERS][PA]; enum Esc { Escape[128] } new SQL_Escape[Esc]; function SavePlayerAccount(playerid) { GetPlayerName(playerid, pname, sizeof(pname)); GetPlayerHealth(playerid, AccountData[playerid][pHealth]); GetPlayerArmour(playerid, AccountData[playerid][pArmour]); format(stringsize, sizeof(stringsize), \"UPDATE \"SQL_TABLE\" SET Money = %d, AdminLevel = %d, Health = %f, Armour = %f, Bank = %d WHERE Name = \'%s\'\", GetPlayerMoney(playerid), PlayerAccount[playerid][AdminLevel], AccountData[playerid][pHealth], AccountData[playerid][pArmour], PlayerAccount[playerid][bank], pname); mysql_query(stringsize, SQL_SAVE_ACCOUNT, playerid, RegistrationSystemConnection); } function OnPlayerLogin(playerid) { // In this function you can make a user forcespawn. This is called after someone logged in.. GivePlayerMoney(playerid, PlayerAccount[playerid][Money]); SetPlayerHealth(playerid, PlayerAccount[playerid][Health]); SetPlayerArmour(playerid, PlayerAccount[playerid][Armour]); AccountData[playerid][Logged] = true; } function OnPlayerRegister(playerid) { // In this function you can make a user forcespawn. This is called after someone registered. AccountData[playerid][Account] = true; #if defined Force_Login { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,\"Login\",\"Enter your password below:\",\"Login\",\"Cancel\"); } #endif } function ConnectToDB() { mysql_debug(1); RegistrationSystemConnection = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASSWORD); if(mysql_ping(RegistrationSystemConnection) == -1) { mysql_reconnect(RegistrationSystemConnection); } } function LoginPlayer(playerid, reason) { GetPlayerName(playerid, pname, sizeof(pname)); format(stringsize, sizeof(stringsize), \"SELECT * FROM \"SQL_TABLE\"\", pname); mysql_query(stringsize, -1, -1, RegistrationSystemConnection); mysql_store_result(); new playerfilesplit[8][128], playerloadingarray[128]; mysql_fetch_row_format(playerloadingarray,\"|\", RegistrationSystemConnection); split(playerloadingarray, playerfilesplit, \'|\'); PlayerAccount[playerid][Money] = strval(playerfilesplit[3]); PlayerAccount[playerid][AdminLevel] = strval(playerfilesplit[4]); PlayerAccount[playerid][Health] = floatstr(playerfilesplit[5]); PlayerAccount[playerid][Armour] = floatstr(playerfilesplit[6]); PlayerAccount[playerid][bank] = strval(playerfilesplit[7]); mysql_free_result(RegistrationSystemConnection); switch(reason) { case 1: { SendClientMessage(playerid, BLUE, LOGINMSSG1); } case 2: { SendClientMessage(playerid, BLUE, LOGINMSSG2); } } OnPlayerLogin(playerid); } function RegisterPlayer(playerid, inputtedpassword[]) { GetPlayerName(playerid, pname, sizeof(pname)); //GetPlayerIp(playerid, AccountData[playerid][pip], sizeof(AccountData[playerid][pip]) ); new plrIP[20]; GetPlayerIp(playerid, plrIP, sizeof(plrIP)); GetPlayerHealth(playerid, AccountData[playerid][pHealth]); GetPlayerArmour(playerid, AccountData[playerid][pArmour]); format(stringsize, sizeof(stringsize), \"INSERT INTO \"SQL_TABLE\" (Name, Password, IP, Money, AdminLevel, Health, Armour, Bank) VALUES(\'%s\', md5(\'%s\'), \'%s\', %d, 0, \'%f\', \'%f\', 0)\", pname, inputtedpassword, plrIP, GetPlayerMoney(playerid), AccountData[playerid][pHealth], AccountData[playerid][pArmour]); mysql_query(stringsize, SQL_REGISTER_PLAYER, playerid, RegistrationSystemConnection); OnPlayerRegister(playerid); } function 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; } public OnFilterScriptInit() { ConnectToDB(); } public OnFilterScriptExit() { mysql_close(RegistrationSystemConnection); } public OnPlayerConnect(playerid) { GetPlayerName(playerid, pname, sizeof(pname)); format(stringsize, sizeof(stringsize), \"SELECT * FROM \"SQL_TABLE\" WHERE Name = \'%s\'\", pname); // mysql_query(stringsize, SQL_CHECK_ACCOUNT, playerid, RegistrationSystemConnection); mysql_query(stringsize, -1,-1, RegistrationSystemConnection); mysql_store_result(RegistrationSystemConnection); if(mysql_num_rows(RegistrationSystemConnection) > 0) { AccountData[playerid][Account] = true; } else AccountData[playerid][Account] = false; mysql_free_result(RegistrationSystemConnection); #if defined AutoLogin { if(AccountData[playerid][Account] == true) { new plrIP[20]; GetPlayerIp(playerid, plrIP, sizeof(plrIP)); format(stringsize, sizeof(stringsize), \"SELECT * FROM \"SQL_TABLE\" WHERE Name = \'%s\' AND IP = \'%s\'\", pname, plrIP); mysql_query(stringsize, -1, -1, RegistrationSystemConnection); mysql_store_result(RegistrationSystemConnection); if(mysql_num_rows(RegistrationSystemConnection) > 0) { LoginPlayer(playerid, 2); } else return SendClientMessage(playerid, BLUE, ERROR_MESSAGE1); mysql_free_result(RegistrationSystemConnection); } } #endif #if defined Force_Login { if(AccountData[playerid][Account] == true) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,\"Login\",\"Enter your password below:\",\"Login\",\"Cancel\"); } else ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,\"Register\",\"Enter your password below:\",\"Register\",\"Cancel\"); } #endif return 1; } public OnPlayerDisconnect(playerid) { SavePlayerAccount(playerid); } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case 1: { if(!strlen(inputtext)) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,\"Login\",\"Enter your password below:\",\"Login\",\"Cancel\"); if(!response) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,\"Login\",\"Enter your password below:\",\"Login\",\"Cancel\"); mysql_real_escape_string(inputtext, SQL_Escape[Escape], RegistrationSystemConnection); format(stringsize, sizeof(stringsize), \"SELECT * FROM \"SQL_TABLE\" WHERE Name = \'%s\' AND Password = md5(\'%s\') LIMIT 1\", pname, SQL_Escape[Escape]); mysql_query(stringsize, -1, -1, RegistrationSystemConnection); mysql_store_result(RegistrationSystemConnection); if(mysql_num_rows(RegistrationSystemConnection) > 0) { LoginPlayer(playerid, 1); } else return SendClientMessage(playerid, BLUE, ERROR_MESSAGE2); } case 2: { if(!strlen(inputtext)) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,\"Register\",\"Enter your password below:\",\"Register\",\"Cancel\"); if(!response) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,\"Register\",\"Enter your password below:\",\"Register\",\"Cancel\"); mysql_real_escape_string(inputtext, SQL_Escape[Escape], RegistrationSystemConnection); RegisterPlayer(playerid, SQL_Escape[Escape]); } } return 0; } public OnQueryFinish( query[], resultid, extraid, connectionHandle ) { switch(resultid) { /* case SQL_CHECK_ACCOUNT: { mysql_store_result(RegistrationSystemConnection); if(mysql_num_rows(RegistrationSystemConnection) > 0) { AccountData[extraid][Account] = true; } else AccountData[extraid][Account] = false; mysql_free_result(RegistrationSystemConnection); } case SQL_CHECK_LOGIN: { mysql_store_result(RegistrationSystemConnection); if(mysql_num_rows(RegistrationSystemConnection) > 1) { LoginPlayer(extraid, 1); } else return SendClientMessage(extraid, BLUE, ERROR_MESSAGE2); mysql_free_result(RegistrationSystemConnection); } case SQL_CHECK_IP: { mysql_store_result(RegistrationSystemConnection); if(mysql_num_rows(RegistrationSystemConnection) > 0) { LoginPlayer(extraid, 2); } else return SendClientMessage(extraid, BLUE, ERROR_MESSAGE1); mysql_free_result(RegistrationSystemConnection); }*/ case SQL_REGISTER_PLAYER: { SendClientMessage(extraid, BLUE, REGMSSG); } case SQL_SAVE_ACCOUNT: { } } return 1; } command(register, playerid, params[]) { if(AccountData[playerid][Account] == false && AccountData[playerid][Logged] == false) { ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,\"Register\",\"Enter your password below:\",\"Register\",\"Cancel\"); } return 1; } command(login, playerid, params[]) { if(AccountData[playerid][Account] == true && AccountData[playerid][Logged] == false) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,\"Login\",\"Enter your password below:\",\"Login\",\"Cancel\"); } return 1; } AZ ERROR - WARNING: C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : error 029: invalid expression, assumed zero C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : warning 215: expression has no effect C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : error 029: invalid expression, assumed zero C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : warning 215: expression has no effect C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : error 029: invalid expression, assumed zero C:\\Users\\Peter\\Desktop\\Sa-MP\\gamemodes\\mysql.pwn(72) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
5
« Dátum: 2012. szeptember 24. - 19:33:56 »
Sziasztok, valaki tudna egy nagyon alap RPG módot linkelni, csak tanulmányozni akarom az elvi mükõdését!
6
« Dátum: 2012. szeptember 14. - 09:58:00 »
Sziasztok, ebbe tud valaki, nekem olyat beleírni, hogy /kick [iD vagy Név] [indok] - csak RCON Admin tudja használni, /ban [iD vagy Név] [indok] - csak RCON Admin tudja használni, /unban [iD vagy Név] [indok] - csak RCON Admin tudja használni, /report [üzenet] - csak RCON Admin látja, /rereport [iD vagy Név] [Üzenet] - akitõl jött az üzenet lehessen válaszolni rá és végül a /jail [iD vagy Név] [indok] - Ezt is csak RCON Admin tudja használni! A jail helyét lehessen változtatni (koordinátákra gondolok itt) Nyugodtan javístátok, ki ha találtok hibát a gmben, igazából most kezdtem és megköszönöm a segítséget! #include <a_samp> #pragma tabsize 0 // ################// #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_BLUE 0x0000BBAA #define COLOR_LIGHTBLUE 0x33CCFFAA #if defined FILTERSCRIPT public OnFilterScriptInit() { print(\"\\n--------------------------------------\"); print(\" Blank Filterscript by your name here\"); print(\"--------------------------------------\\n\"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print(\"\\n----------------------------------\"); print(\" Blank Gamemode by your name here\"); print(\"----------------------------------\\n\"); } #endif public OnGameModeInit() { // Don\'t use these lines if it\'s a filterscript SetGameModeText(\"Blank Script\"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,\"%s belépett a szerverre!\",pName); SendClientMessageToAll(0x33CCFFAA,string); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/info\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_WHITE, \"-------------------[ Információk ]-------------------\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"A szerver tesz stádiumban fut\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"A szervert ptR & N1hgtm4r3 készítette\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"A szerver készült: 2012.09.09\"); return 1; } if (strcmp(\"/hitman\", cmdtext, true, 10) == 0) { new string[64], pName[MAX_PLAYER_NAME]; new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid,X,Y,Z); CreateVehicle(402,X,Y+5,Z,1,0,0,999999999999999999999999999999); GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,\"%s Hitmannak állt!\",pName); SendClientMessageToAll(COLOR_LIGHTBLUE,string); SendClientMessage(playerid, COLOR_GREEN, \"Hitmannak álltál jó szorakozást!\"); GivePlayerMoney(playerid,-10000); SetPlayerHealth(playerid,200); SetPlayerArmour(playerid,300); GivePlayerWeapon(playerid,24,999999999999999999999999999999); GivePlayerWeapon(playerid,31,999999999999999999999999999999); GivePlayerWeapon(playerid,34,999999999999999999999999999999); GivePlayerWeapon(playerid,16,20); GivePlayerWeapon(playerid,18,20); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 10.0); SetPlayerSkin(playerid,17); return 1; } if (strcmp(\"/help\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_WHITE, \"-------------------[ Segítség ]-------------------\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"A szerveren több parancs megtalálható.\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"/motor - beínditja/ leállítja a jármü motorját\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"/hitman - Hitman mód\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"/info - Megnézheted a szerver adatait\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"/stats - Megnézheted a saját magad adatait\"); return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }
7
« Dátum: 2012. szeptember 09. - 21:03:10 »
Adott ez a ALIEN által írt kis script amit én modosítottam, viszont így jeleniti meg a játékban, és úgy szeretném, hogy csak a Sötétpirossal írt szöveg látszodjon, a körzetemben lévõ emberek is láthassák (15-20)méterig reálisan ha elorditom magam akkor kb addig halják. A képet a Képfeltöltés.hu tárolja. http://www.kepfeltoltes.hutehát a @ anyáád szöveg ne látszodjon csak a piros // Állapot kiírás- script // Készítette: ALIEN // Dátum: 2010,05,08 Idõ: 3-4 perc #include <a_samp> #define COLOR_YELLOW 0xF5FF00FF #define COLOR_MSG 0xFF1E0087 #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_DARKRED 0x8B0000FF public OnFilterScriptInit() { print(\"\\n--------------------------------------\"); print(\" Állapot text- script betöltve, by ALIEN.\"); print(\"--------------------------------------\\n\"); return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Ha ordítani szeretnél @szöveg\"); return 1; } public OnPlayerText(playerid, text[]) { new string[128]; new pName[MAX_PLAYER_NAME]; if(text[0] == \'@\') { GetPlayerName(playerid,pName,sizeof(pName)); format(string,256,\"%s ordítja, %s\",pName,text[1]); for(new i; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { SendClientMessageToAll(COLOR_DARKRED,string); } } return 1; } return 0; }
8
« Dátum: 2012. szeptember 09. - 15:25:36 »
Sziasztok, valaki tudna segíteni, hogy létezik-e olyan script, leginkább gamemodeba szeretném írni, ha lehet alap gamemodeba semmi includeos szarság mert az csak engem össze zavar, naah.. Ami kéne, hogy lehessen /me-zni, /do-zni - gondolom tudjátok mi-micsoda. A másik meg ha valaki megnyomja a t-betüt azaz írni akar akkor a karaktere, kezdjen el lejátszani a \"chat\" animot, akkor ne ha jármüben ül!!! Köszönöm!
9
« Dátum: 2012. szeptember 09. - 15:23:03 »
Sziasztok megint neki álltam a szerver készítésnek de mikor legutóbb abba hagytam az pont ez a hiba volt! beírom a játékban, hogy /info erre unknown command... // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #include zcmd #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_BLUE 0x0000BBAA #define COLOR_LIGHTBLUE 0x33CCFFAA #if defined FILTERSCRIPT public OnFilterScriptInit() { print(\"\\n--------------------------------------\"); print(\" Blank Filterscript by your name here\"); print(\"--------------------------------------\\n\"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print(\"\\n----------------------------------\"); print(\" Blank Gamemode by your name here\"); print(\"----------------------------------\\n\"); } #endif public OnGameModeInit() { // Don\'t use these lines if it\'s a filterscript SetGameModeText(\"Blank Script\"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,\"Szerver: %s belépett a szerverre!\",pName); SendClientMessageToAll(COLOR_LIGHTBLUE,string); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Üdvözlünk a szerveren érezd magad jól!\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Ha bármi problémád lenne írj egy adminnak!\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Információk: /info!\"); return 1; } public OnPlayerDisconnect(playerid, reason) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,\"Szerver: %s lelépett a szerverrõl!\",pName); SendClientMessageToAll(COLOR_LIGHTBLUE,string); return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/info\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_WHITE, \"-------------------[ Információk ]-------------------\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"A szerver tesz stádiumban fut\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"A szervert ptR & N1hgtm4r3 készítette\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"A szerver készült: 2012.09.09\"); return 1; } if (strcmp(\"/hitman\", cmdtext, true, 10) == 0) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,\"%s Hitmannak állt!\",pName); SendClientMessageToAll(COLOR_LIGHTBLUE,string); SendClientMessage(playerid, COLOR_GREEN, \"Hitmannak álltál jó szorakozást!\"); GivePlayerMoney(playerid,-10000); SetPlayerHealth(playerid,200); SetPlayerArmour(playerid,300); GivePlayerWeapon(playerid,24,999999999999999999999999999999); GivePlayerWeapon(playerid,31,999999999999999999999999999999); GivePlayerWeapon(playerid,34,999999999999999999999999999999); GivePlayerWeapon(playerid,16,20); GivePlayerWeapon(playerid,18,20); return 1; } return SendClientMessage(playerid, COLOR_RED, \"Szerver: Hibás parancs!\"); } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; }
10
« Dátum: 2012. június 24. - 14:35:53 »
Hogy kell olyan parancsot csinálni, amit pl.: a rendõr használhat? Skin ID: 288, 287, 286, 285, 284, 283, 282, 281, 280, 166, 165 Parancs: /rendornyit* * = ez egy sorompót nyit ki! (csak ki kell nyitni, magától bezárodik.)
11
« Dátum: 2012. június 23. - 17:17:37 »
Sorompó cucchoz kerestem egy pwnt- azt próbáltam átírni kevesebb sikerrel! ERROR: C:\\Users\\ptR\\Desktop\\samp\\gamemodes\\Sorompo.pwn(28) : error 010: invalid function or declaration C:\\Users\\ptR\\Desktop\\samp\\gamemodes\\Sorompo.pwn(32) : error 010: invalid function or declaration C:\\Users\\ptR\\Desktop\\samp\\gamemodes\\Sorompo.pwn(40) : error 055: start of function body without function header C:\\Users\\ptR\\Desktop\\samp\\gamemodes\\Sorompo.pwn(42) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. PAWN: #include <a_samp> #define FILTERSCRIPT #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xFF0000AA forward GateClose(); new sorompo1; new sorompo2; public OnFilterScriptInit() { sorompo1 = CreateObject(968, -191.5, 1004.0999755859, 19.60000038147, 0, 90, 358.75); ///barrier closed CreateObject(966,-215.39999390,1007.70001221,18.70000076,0.00000000,0.00000000,358.25000000); //object(bar_gatebar01) (2) CreateObject(966,-191.39999390,1004.09997559,18.79999924,0.00000000,0.00000000,178.75000000); //object(bar_gatebar01) (3) sorompo2 = CreateObject(968, -215.39999389648, 1007.700012207, 19.39999961853, 0, 270, 358.5); ///barrier closed return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/rendornyit\", cmdtext, true, 10) == 0) SetObjectRot(sorompo2, 0, 31, 358.75); // barrier open after command SetTimer(\"GateClose\", 10000, 0); SendClientMessage(playerid, COLOR_GREEN,\"A sorompó kinyilt! Hamarosan bezárodik (10mp).\"); return 1; } if (strcmp(\"/hatarnyit\", cmdtext, true, 10) == 0) SetObjectRot(sorompo1, 0, 335, 358.5); // barrier open after command SetTimer(\"GateClose\", 10000, 0); SendClientMessage(playerid, COLOR_GREEN,\"A sorompó kinyilt! Hamarosan bezárodik (10mp).\"); return 1; } public GateClose() { SetObjectRot(sorompo1, 0, 90, 358.75); // barrier closed after command return 1; } { SetObjectRot(sorompo2, 0, 270, 358.5); // barrier closed after command return 1; }
12
« Dátum: 2012. június 22. - 17:12:13 »
Valakinek felkéne jönni, hogy lássa mi a szitu, elkéne mentenem a pénzt a skint meg mindent /register /login kellene, hogyan írjam meg? A többit privátban, ha valaki tudna nekem segíteni vegyen fel skypera: cserenyip
13
« Dátum: 2012. június 22. - 14:59:16 »
Ha beszállok egy jármübe akkor írjon nekem pár üzenetet, melyik sor alá kell írni? valami onplayervehicle?
14
« Dátum: 2012. június 21. - 18:28:05 »
Nekem olyan kéne, hogy SWEEPER (Út tisztító)-el lehetne menni körbe checkpointokon és mondjuk ha 10 check ponton átmegy akkor pénzt kapna érte. Most én ide írom a pontok helyeit és hogy hol áll a SWEEPER ha kell ha nem Köszönöm aki meg csinálja! Úgy csinálja, meg hogy Gamemodeba betudjam rakni és a fizetést álítani tudjam! Úgy gondoltam, hogy mikor ugye vezeti a kocsit akkor csak mindig egy pont van a képen, 1. után a 2. ..... 64. utén 65... 78. után az utolsó! Remélem érhetõ! Köszi mégegyszer aki megcsinálja! PONTOK:660.40002441,-603.40002441,16.20000076,0.00000000,0.00000000,0.00000000 //01. pont 670.70001221,-604.09997559,16.20000076,0.00000000,0.00000000,0.00000000 //02. pont 678.59997559,-611.00000000,16.20000076,0.00000000,0.00000000,0.00000000 //03. pont 678.90002441,-619.40002441,16.20000076,0.00000000,0.00000000,0.00000000 //04. pont 678.79998779,-629.20001221,16.20000076,0.00000000,0.00000000,0.00000000 //05. pont 679.20001221,-640.20001221,16.20000076,0.00000000,0.00000000,0.00000000 //06. pont 681.90002441,-649.40002441,16.20000076,0.00000000,0.00000000,0.00000000 //07. pont 685.70001221,-640.09997559,16.20000076,0.00000000,0.00000000,0.00000000 //08. pont 685.59997559,-628.59997559,16.20000076,0.00000000,0.00000000,0.00000000 //09. pont 685.79998779,-616.79998779,16.20000076,0.00000000,0.00000000,0.00000000 //10. pont 686.00000000,-606.09997559,16.20000076,0.00000000,0.00000000,0.00000000 //11. pont 693.00000000,-603.40002441,16.20000076,0.00000000,0.00000000,0.00000000 //12. pont 701.29998779,-603.70001221,16.20000076,0.00000000,0.00000000,0.00000000 //13. pont 710.20001221,-603.70001221,16.20000076,0.00000000,0.00000000,0.00000000 //14. pont 720.59997559,-600.29998779,16.20000076,0.00000000,0.00000000,0.00000000 //15. pont 725.70001221,-590.20001221,16.20000076,0.00000000,0.00000000,0.00000000 //16. pont 726.09997559,-580.70001221,16.20000076,0.00000000,0.00000000,0.00000000 //17. pont 725.79998779,-568.90002441,16.20000076,0.00000000,0.00000000,0.00000000 //18. pont 726.09997559,-557.40002441,16.20000076,0.00000000,0.00000000,0.00000000 //19. pont 725.70001221,-547.20001221,16.20000076,0.00000000,0.00000000,0.00000000 //20. pont 727.50000000,-536.09997559,16.20000076,0.00000000,0.00000000,0.00000000 //21. pont 734.59997559,-532.50000000,16.20000076,0.00000000,0.00000000,0.00000000 //22. pont 746.00000000,-532.79998779,16.20000076,0.00000000,0.00000000,0.00000000 //23. pont 759.20001221,-533.20001221,16.20000076,0.00000000,0.00000000,0.00000000 //24. pont 770.70001221,-533.20001221,16.20000076,0.00000000,0.00000000,0.00000000 //25. pont 782.40002441,-533.40002441,16.20000076,0.00000000,0.00000000,0.00000000 //26. pont 793.90002441,-533.40002441,16.20000076,0.00000000,0.00000000,0.00000000 //27. pont 807.09997559,-533.40002441,16.20000076,0.00000000,0.00000000,0.00000000 //28. pont 816.59997559,-534.09997559,16.20000076,0.00000000,0.00000000,0.00000000 //29. pont 826.79998779,-535.59997559,16.20000076,0.00000000,0.00000000,0.00000000 //30. pont 828.70001221,-547.29998779,16.20000076,0.00000000,0.00000000,0.00000000 //31. pont 828.59997559,-558.59997559,16.20000076,0.00000000,0.00000000,0.00000000 //32. pont 828.50000000,-569.90002441,16.20000076,0.00000000,0.00000000,0.00000000 //33. pont 828.00000000,-579.79998779,16.20000076,0.00000000,0.00000000,0.00000000 //34. pont 827.09997559,-589.29998779,16.20000076,0.00000000,0.00000000,0.00000000 //35. pont 818.29998779,-592.09997559,16.20000076,0.00000000,0.00000000,0.00000000 //36. pont 808.29998779,-592.29998779,16.20000076,0.00000000,0.00000000,0.00000000 //37. pont 798.79998779,-591.09997559,16.20000076,0.00000000,0.00000000,0.00000000 //38. pont 795.40002441,-581.79998779,16.20000076,0.00000000,0.00000000,0.00000000 //39. pont 795.00000000,-572.79998779,16.20000076,0.00000000,0.00000000,0.00000000 //40. pont 795.20001221,-563.00000000,16.20000076,0.00000000,0.00000000,0.00000000 //41. pont 795.00000000,-552.70001221,16.20000076,0.00000000,0.00000000,0.00000000 //42. pont 795.09997559,-540.40002441,16.20000076,0.00000000,0.00000000,0.00000000 //43. pont 794.50000000,-531.20001221,16.20000076,0.00000000,0.00000000,0.00000000 //44. pont 789.59997559,-526.09997559,16.20000076,0.00000000,0.00000000,0.00000000 //45. pont 779.79998779,-526.70001221,16.20000076,0.00000000,0.00000000,0.00000000 //46. pont 768.00000000,-526.70001221,16.20000076,0.00000000,0.00000000,0.00000000 //47. pont 757.00000000,-527.00000000,16.20000076,0.00000000,0.00000000,0.00000000 //48. pont 747.79998779,-526.79998779,16.20000076,0.00000000,0.00000000,0.00000000 //49. pont 734.29998779,-526.59997559,16.20000076,0.00000000,0.00000000,0.00000000 //50. pont 725.20001221,-518.90002441,16.20000076,0.00000000,0.00000000,0.00000000 //51. pont 725.29998779,-509.39999390,16.20000076,0.00000000,0.00000000,0.00000000 //52. pont 725.40002441,-499.20001221,16.20000076,0.00000000,0.00000000,0.00000000 //53. pont 722.50000000,-487.89999390,16.20000076,0.00000000,0.00000000,0.00000000 //54. pont 715.29998779,-483.10000610,16.20000076,0.00000000,0.00000000,0.00000000 //55. pont 704.29998779,-482.50000000,16.20000076,0.00000000,0.00000000,0.00000000 //56. pont 694.29998779,-482.39999390,16.20000076,0.00000000,0.00000000,0.00000000 //57. pont 685.00000000,-482.29998779,16.20000076,0.00000000,0.00000000,0.00000000 //58. pont 685.00000000,-482.29980469,16.20000076,0.00000000,0.00000000,0.00000000 //59. pont 679.20001221,-484.79998779,16.20000076,0.00000000,0.00000000,0.00000000 //60. pont 678.70001221,-492.79998779,16.20000076,0.00000000,0.00000000,0.00000000 //61. pont 679.20001221,-501.29998779,16.20000076,0.00000000,0.00000000,0.00000000 //62. pont 679.19921875,-501.29980469,16.20000076,0.00000000,0.00000000,0.00000000 //63. pont 678.90002441,-509.89999390,16.20000076,0.00000000,0.00000000,0.00000000 //64. pont 678.20001221,-520.50000000,16.20000076,0.00000000,0.00000000,0.00000000 //65. pont 669.90002441,-526.90002441,16.20000076,0.00000000,0.00000000,0.00000000 //66. pont 661.29998779,-527.40002441,16.20000076,0.00000000,0.00000000,0.00000000 //67. pont 653.40002441,-526.59997559,16.20000076,0.00000000,0.00000000,0.00000000 //68. pont 644.09997559,-526.90002441,16.20000076,0.00000000,0.00000000,0.00000000 //69. pont 639.50000000,-534.29998779,16.20000076,0.00000000,0.00000000,0.00000000 //70. pont 639.29998779,-543.50000000,16.20000076,0.00000000,0.00000000,0.00000000 //71. pont 639.00000000,-551.29998779,16.20000076,0.00000000,0.00000000,0.00000000 //72. pont 639.40002441,-561.09997559,16.20000076,0.00000000,0.00000000,0.00000000 //73. pont 639.09997559,-571.20001221,16.20000076,0.00000000,0.00000000,0.00000000 //74. pont 638.90002441,-579.79998779,16.20000076,0.00000000,0.00000000,0.00000000 //75. pont 639.70001221,-588.00000000,16.20000076,0.00000000,0.00000000,0.00000000 //76. pont 643.20001221,-598.09997559,16.20000076,0.00000000,0.00000000,0.00000000 //77. pont 649.79998779,-601.90002441,16.20000076,0.00000000,0.00000000,0.00000000 //78. pont 655.50000000,-602.59997559,16.20000076,0.00000000,0.00000000,0.00000000 //Az utolsó pont A KOCSI HELYE:CreateVehicle(574,658.09997559,-636.70001221,16.10000038,0.00000000,40,1,0
15
« Dátum: 2012. június 21. - 18:05:28 »
Aki nem értené, hogy mit szeretnék:Ha beírom, hogy /rendorfonok, akkor átváltja a skinem, egy rendõr skinre. és kíirja, hogy sikeresne rendõr lettél, majd mindenkinek elküldené, hogy rendõr szolgálatban! Ha nem vagyok RCON ADMIN akkor, írja ki, hogy hiba nem vagy rcon admin és a skinemet ne álitsa el! Nos én megpróbáltam:de ez az error jön ki! ERROR: C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\gamemodes\\ptp.pwn(199) : warning 202: number of arguments does not match definition C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\gamemodes\\ptp.pwn(262) : error 001: expected token: \"*then\", but found \";\" C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\gamemodes\\ptp.pwn(262) : error 036: empty statement C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\gamemodes\\ptp.pwn(263) : error 001: expected token: \"*then\", but found \";\" C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\gamemodes\\ptp.pwn(263) : error 036: empty statement C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\gamemodes\\ptp.pwn(264) : error 035: argument type mismatch (argument 2) C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\gamemodes\\ptp.pwn(265) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 6 Errors. MAGA AZ EMLÍTETT SOROK: public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, \"/help\", true)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Ha valamit nem tudsz kérzedz az Admin, õ majd segít neked!\"); SendClientMessage(playerid, COLOR_LIGHTBLUE, \"További jó játékot!\"); return 1; } if(!strcmp(cmdtext, \"/rendorfonok\", true)) { if(IsPlayerAdmin(playerid)) SetPlayerSkin(playerid, 281); SendClientMessageToAll(COLOR_WHITE, \"Egy rendõr szolgálatba állt.\"); if SendClientMessage (playerid, COLOR_GREEN, \"Sikeresen Szolgálatba álltál!\"); if SendClientMessage (playerid, COLOR_WHITE, \"Villogó: /villogobe - /villogoki\"); else SendClientMessage(COLOR_RED, \"Hiba: Nem vagy RCON Admin!\"); else SetPlayerSkin(playerid, 78); // Kéne alá, hogy nem tudott szolgálatba állni mert nem Rcon ADMIN, a Rendörfönõk, tudjon felvenni rendõrõket. return 1; } //ALÁ AZ ÚJABB PARANCS if(!strcmp(cmdtext, stb... return 0; // EZ KELL IDE MERT KELL! ENÉLKÜL ERRORT ÍRNA KI! // Returning 0 informs the server that the command hasn\'t been processed by this script. // OnPlayerCommandText will be called in other scripts until one returns 1. // If no scripts return 1, the \'SERVER: Unknown Command\' message will be shown. }
|