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(\"/mycommand\", cmdtext, true, 10) == 0){ // Do something here 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;}
// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#include <sscanf>#include <Dini>#include <ocmd>#include <zcmd>#define COLOR_LIGHTBLUE 0x33CCFFAA#define COLOR_RED 0xAA3333AA#define COLOR_GREY 0xAFAFAFAA#define COLOR_YELLOW 0xFFFF00AA#define COLOR_PINK 0xFF66FFAA#define COLOR_BLUE 0x0000BBAA#define COLOR_WHITE 0xFFFFFFAA#define COLOR_DARKRED 0x660000AA#define COLOR_ORANGE 0xFF9900AA#define COLOR_BRIGHTRED 0xFF0000AA#define COLOR_INDIGO 0x4B00B0AA#define COLOR_VIOLET 0x9955DEEE#define COLOR_LIGHTRED 0xFF99AADD#define COLOR_SEAGREEN 0x00EEADDF#define COLOR_GRAYWHITE 0xEEEEFFC4#define COLOR_LIGHTNEUTRALBLUE 0xabcdef66#define COLOR_GREENISHGOLD 0xCCFFDD56#define COLOR_LIGHTBLUEGREEN 0x0FFDD349#define COLOR_NEUTRALBLUE 0xABCDEF01#define COLOR_LIGHTCYAN 0xAAFFCC33#define COLOR_LEMON 0xDDDD2357#define COLOR_MEDIUMBLUE 0x63AFF00A#define COLOR_NEUTRAL 0xABCDEF97#define COLOR_BLACK 0x00000000#define COLOR_NEUTRALGREEN 0x81CFAB00#define COLOR_DARKGREEN 0x12900BBF#define COLOR_LIGHTGREEN 0x24FF0AB9#define COLOR_DARKBLUE 0x300FFAAB#define COLOR_BLUEGREEN 0x46BBAA00#define COLOR_PINK 0xFF66FFAA#define COLOR_LIGHTBLUE 0x33CCFFAA#define COLOR_DARKRED 0x660000AA#define COLOR_ORANGE 0xFF9900AA#define COLOR_PURPLE 0x800080AA#define COLOR_GRAD1 0xB4B5B7FF#define COLOR_GRAD2 0xBFC0C2FF#define COLOR_RED1 0xFF0000AA#define COLOR_GREY 0xAFAFAFAA#define COLOR_GREEN 0x33AA33AA#define COLOR_RED 0xAA3333AA#define COLOR_YELLOW 0xFFFF00AA#define COLOR_WHITE 0xFFFFFFAA#define COLOR_BROWN 0x993300AA#define COLOR_CYAN 0x99FFFFAA#define COLOR_TAN 0xFFFFCCAA#define COLOR_PINK 0xFF66FFAA#define COLOR_KHAKI 0x999900AA#define COLOR_LIME 0x99FF00AA#define COLOR_SYSTEM 0xEFEFF7AA#define COLOR_GRAD2 0xBFC0C2FF#define COLOR_GRAD4 0xD8D8D8FF#define COLOR_GRAD6 0xF0F0F0FF#define COLOR_GRAD2 0xBFC0C2FF#define COLOR_GRAD3 0xCBCCCEFF#define COLOR_GRAD5 0xE3E3E3FF#define COLOR_GRAD1 0xB4B5B7FF#define DIALOG_REGISZTRACIO 1#define DIALOG_BEJELENTKEZES 2main(){print(\"\\n----------------------------------\");print(\" ................. \");print(\"----------------------------------\\n\");}new Szamlalo;public OnGameModeInit(){// Don\'t use these lines if it\'s a filterscriptSetGameModeText(\"Blank Script\"); new jarmu1 = AddStaticVehicle(416,2073.468750,-1466.496093,23.387844,180.0,1,3); SetVehicleNumberPlate(jarmu1, \"DaZ-301\"); printf(\"Jármû %i betöltve !\", jarmu1); new jarmu2 = AddStaticVehicle(416,2067.191650,-1466.477294,22.346532,180.0,1,3); SetVehicleNumberPlate(jarmu2, \"DaZ-302\"); printf(\"Jármû %i betöltve !\", jarmu2); new jarmu3 = AddStaticVehicle(416,2061.178466,-1466.496459,21.262739,180.0,1,3); SetVehicleNumberPlate(jarmu3, \"DaZ-303\"); printf(\"Jármû %i betöltve !\", jarmu3); new jarmu4 = AddStaticVehicle(416,2055.021972,-1466.489135,20.152076,180.0,1,3); SetVehicleNumberPlate(jarmu4, \"DaZ-304\"); printf(\"Jármû %i betöltve !\", jarmu4); new jarmu5 = AddStaticVehicle(416,2049.235839,-1466.374755,19.100887,180.0,1,3); SetVehicleNumberPlate(jarmu5, \"DaZ-305\"); printf(\"Jármû %i betöltve !\", jarmu5); new jarmu6 = AddStaticVehicle(416,2042.870727,-1466.260986,17.951349,180.0,1,3); SetVehicleNumberPlate(jarmu6, \"DaZ-306\"); printf(\"Jármû %i betöltve !\", jarmu6); new jarmu7 = AddStaticVehicle(416,2037.463623,-1466.232055,16.973567,180.0,1,3); SetVehicleNumberPlate(jarmu7, \"DaZ-307\"); printf(\"Jármû %i betöltve !\", jarmu7); new jarmu8 = AddStaticVehicle(416,2031.234497,-1466.332397,15.851901,180.0,1,3);SetVehicleNumberPlate(jarmu8, \"DaZ-308\"); printf(\"Jármû %i betöltve !\", jarmu8); new jarmu9 = AddStaticVehicle(416,2025.119140,-1466.223999,14.748760,180.0,1,3); SetVehicleNumberPlate(jarmu9, \"DaZ-309\"); printf(\"Jármû %i betöltve !\", jarmu9); new jarmu10 = AddStaticVehicle(416,2018.616210,-1466.447631,13.715760,180.0,1,3); SetVehicleNumberPlate(jarmu10, \"DaZ-310\"); printf(\"Jármû %i betöltve !\", jarmu10); new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(3,vehx,vehy,vehz); printf(\"xddd %f\",vehx);return 1;}public OnGameModeExit(){return 1;}ocmd:kocsiid(playerid,params[]){new text;if(sscanf(params,\"d\",text))return SendClientMessage(playerid,0xff0000ff,\"/pn id\");new szoveg123[512];new Float:vehx, Float:vehy, Float:vehz;GetVehiclePos(text,vehx,vehy,vehz);format(szoveg123,sizeof(szoveg123),\",%f,%f,%f,180.0,1,3\",vehx,vehy,vehz);SendClientMessage(playerid, COLOR_RED, szoveg123);printf(szoveg123); return 1;}public OnPlayerRequestClass(playerid, classid){new file[128];format(file, sizeof(file), \"\\\\felhasznalok\\\\%s.ini\", nev(playerid));new Skin = dini_Int(file, \"Skin\"); new posX = dini_Int(file, \"X\"); new posY = dini_Int(file, \"Y\"); new posZ = dini_Int(file, \"Z\"); SetSpawnInfo( playerid, 0, Skin, posX, posY, posZ, 269.15, 0, 0, 0, 0, 0, 0 );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 file[128], jatekosnev[MAX_PLAYER_NAME]; GetPlayerName(playerid, jatekosnev, sizeof(jatekosnev)); format(file, sizeof(file), \"\\\\felhasznalok\\\\%s.ini\", nev(playerid)); if(!dini_Exists(file)){print(\"Nem létezik\");ShowPlayerDialog(playerid, DIALOG_REGISZTRACIO, DIALOG_STYLE_PASSWORD, \"Regisztráció\", \"A regisztrációhoz kérlek add\\n meg a jelszavad.\", \"Tovább\", \"Mégsem\");} else {print(\"Létezik\");ShowPlayerDialog(playerid, DIALOG_BEJELENTKEZES, DIALOG_STYLE_PASSWORD, \"Bejelentkezés\", \"Kérlek jelentkezz be\", \"Tovább\", \"Mégsem\");}return 1;}public OnPlayerDisconnect(playerid, reason){KillTimer(Szamlalo);return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == DIALOG_REGISZTRACIO) { if(!response) { SendClientMessage(playerid,COLOR_RED,\"Kickelve lettél\"); } else { new file[128]; //jatekosnev[MAX_PLAYER_NAME]; format(file, sizeof(file), \"\\\\felhasznalok\\\\%s.ini\", nev(playerid)); if(!dini_Exists(file)) { dini_Create(file); dini_Set(file, \"Jelszo\", inputtext); new szoveg123[512]; format(szoveg123,sizeof(szoveg123),\"Sikeres regisztráció. Köszöntelek rendszerünkben %s ! Jelszavad:%s\",nev(playerid),inputtext); SendClientMessage(playerid,COLOR_GREEN,\"~~~~~~~~~~~~~~~~~~~~~~~~~~~\"); SendClientMessage(playerid,COLOR_RED,szoveg123); SendClientMessage(playerid,COLOR_GREEN,\"~~~~~~~~~~~~~~~~~~~~~~~~~~~\"); ShowPlayerDialog(playerid, DIALOG_BEJELENTKEZES, DIALOG_STYLE_PASSWORD, \"Bejelentkezés\", \"Kérlek jelentkezz be\", \"Tovább\", \"Mégsem\"); } else { SendClientMessage(playerid,COLOR_RED,\"A megadott felhasználói név már létezik, kérlek válassz másikat !\"); ShowPlayerDialog(playerid, DIALOG_REGISZTRACIO, DIALOG_STYLE_PASSWORD, \"Regisztráció\", \"A regisztrációhoz kérlek add\\n meg a jelszavad.\", \"Tovább\", \"Mégsem\"); } if(strlen(inputtext) == 0) { SendClientMessage(playerid,COLOR_RED,\"Kérlek addj meg egy felhasználói nevet.\"); } } return 1; }if(dialogid == DIALOG_BEJELENTKEZES) { if(!response) { SendClientMessage(playerid,COLOR_RED,\"Kickelve lettél.\"); } else { new PW[64]; new file[128];//jatekosnev[MAX_PLAYER_NAME]; format(file, sizeof(file), \"\\\\felhasznalok\\\\%s.ini\", nev(playerid)); format(PW, 64, \"%s\", dini_Get(file, \"Pasword\")); if(!strcmp(inputtext, PW, false)) { SpawnPlayer(playerid); SendClientMessage(playerid,COLOR_GREEN,\"Sikeresen bejelentkeztél!\"); Szamlalo = SetTimerEx(\"automentes\", 5000, true, \"i\", playerid); }else{ SendClientMessage(playerid,COLOR_RED,\"Hibás jelszó\"); ShowPlayerDialog(playerid, DIALOG_BEJELENTKEZES, DIALOG_STYLE_PASSWORD, \"Bejelentkezés\", \"Kérlek jelentkezz be\", \"Tovább\", \"Mégsem\"); } } return 1; }return 0; } public OnPlayerClickPlayer(playerid, clickedplayerid, source){return 1;}stock nev(playerid){ new Neve[MAX_PLAYER_NAME]; GetPlayerName(playerid, Neve, sizeof(Neve)); return Neve;}forward automentes(playerid);public automentes(playerid){ new file[128]; format(file, sizeof(file), \"\\\\felhasznalok\\\\%s.ini\", nev(playerid)); new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); dini_FloatSet(file, \"X\", x); dini_FloatSet(file, \"Y\", y); dini_FloatSet(file, \"Z\", z); dini_IntSet(file, \"Skin\", GetPlayerSkin(playerid));}
Sziasztok!! Szeretnék kérdezni hogy mely mappába pakolom az AMX ill a pmw kiterjesztéseket illetve azokat hogy tudom mûködésre birni MTA Seron?