#include <a_samp>new kapu[6];new pMember[MAX_PLAYERS];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\"Picike kapus script 4 Rodrick William by RedDev (founded by Red-Eye)\");print(\"--------------------------------------\\n\");//------- pMember1kapu[0] = CreateObject(980,-1572.0000000,662.2000100,9.0000000,0.0000000,0.0000000,90.0000000);kapu[1] = CreateObject(10184,-1631.6999500,688.5000000,8.7000000,0.0000000,0.0000000,90.0000000);kapu[2] = CreateObject(969,-1701.6999500,680.0999800,23.9000000,0.0000000,0.0000000,90.0000000);// ---------------------//------- pMember4kapu[3] = CreateObject(980,-2607.0000000,580.5000000,16.2000000,0.0000000,0.0000000,0.0000000);kapu[4] = CreateObject(980,-2667.0000000,578.0999800,16.2000000,0.0000000,0.0000000,0.0000000);kapu[5] = CreateObject(980,-2607.3000500,694.9000200,29.6000000,0.0000000,0.0000000,0.0000000);return 1;}public OnFilterScriptExit(){return 1;}stock melyikkapu(playerid){new Float:X,Float:Y,Float:Z;GetPlayerPos(playerid,X,Y,Z);if(IsPlayerInRangeOfPoint(playerid,10,-1571.8439,662.4557,7.1875)) return 1;if(IsPlayerInRangeOfPoint(playerid,10,-1630.8690,688.2397,7.1875)) return 2;if(IsPlayerInRangeOfPoint(playerid,10,-1701.6313,684.4482,24.8891)) return 3;if(IsPlayerInRangeOfPoint(playerid,10,-2605.5784,579.8343,2.2225)) return 4;if(IsPlayerInRangeOfPoint(playerid,10,-2666.8455,578.2116,2.8528)) return 5;if(IsPlayerInRangeOfPoint(playerid,10,-2607.7117,694.9427,27.8125)) return 6;else return 0;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/pmember1\", cmdtext, true, 10) == 0){pMember[playerid] = 1;return 1;} if (strcmp(\"/pmember4\", cmdtext, true, 10) == 0){pMember[playerid] = 4;return 1;} if (strcmp(\"/pmember0\", cmdtext, true, 10) == 0){pMember[playerid] = 0;return 1;}if (strcmp(\"/telekap\", cmdtext, true, 10) == 0){SetPlayerPos(playerid,-1570.4254,675.7687,7.1875);return 1;}if (strcmp(\"/nyit\", cmdtext, true, 10) == 0){switch(pMember[playerid]){ case 1: { switch(melyikkapu(playerid)) { case 0: SendClientMessage(playerid,0xFFFFF,\"Egyik kapu közelében se vagy\"); case 1: MoveObject(kapu[0],-1572.4254,673.7687,7.1875,2); case 2: MoveObject(kapu[1],-1632.1877,688.2851,17.3679,2); case 3: MoveObject(kapu[2],-1701.7047,684.4245,17.2494,2); case 4: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); case 5: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); case 6: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); } } case 4: { switch(melyikkapu(playerid)) { case 0: SendClientMessage(playerid,0xFFFFF,\"Egyik kapu közelében se vagy\"); case 1: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); case 2: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); case 3: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); case 4: MoveObject(kapu[3], -2606.8999,578.9250,14.4531,2); case 5: MoveObject(kapu[4],-2666.1409,578.2809,14.4583,2); case 6: MoveObject(kapu[5],-2608.6953,695.4311,27.8125,2); } }}return 1;}if (strcmp(\"/zar\", cmdtext, true, 10) == 0){switch(pMember[playerid]){ case 1: { switch(melyikkapu(playerid)) { case 0: SendClientMessage(playerid,0xFFFFF,\"Egyik kapu közelében se vagy\"); case 1: MoveObject(kapu[0],-1571.8439,662.4557,7.1875,2,270.7504,0,0); case 2: MoveObject(kapu[1],-1630.8690,688.2397,7.1875,2,6.2946,0,0); case 3: MoveObject(kapu[2],-1701.6313,684.4482,24.8891,2,90.5821 ,0,0); case 4: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); case 5: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); case 6: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); } } case 4: { switch(melyikkapu(playerid)) { case 0: SendClientMessage(playerid,0xFFFFF,\"Egyik kapu közelében se vagy\"); case 1: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); case 2: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); case 3: SendClientMessage(playerid,0xFFFFF,\"Ezt nem nyithatod ki\"); case 4: MoveObject(kapu[3],-2605.5784,579.8343,2.2225,2); case 5: MoveObject(kapu[4],-2666.8455,578.2116,2.8528,2); case 6: MoveObject(kapu[5],-2607.7117,694.9427,27.8125,2); } }}return 1;}return 0;}
Feltöltenéd nekem az AMX et mert aztirja ki hogy warning 217: loose indentationMert amikor kimásolom akkor nem úgy adja be a pawnoba és nem tudom elrendezni õket.
#pragma tabsize 0