// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#if defined FILTERSCRIPTpublic OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Blank Filterscript by your name here\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" Blank Gamemode by your name here\");print(\"----------------------------------\\n\");}#endifnew DMArena[MAX_PLAYERS]; 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) { //ha van onplayerconnect csak az DMArena[playerid] = 1 et rakd be alla DMArena[playerid] = 1; return 1;}public OnPlayerDisconnect(playerid, reason){ DM[playerid] = false; return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if(!strcmp(cmdtext, \"/dm\", true)) { if(DMArena[playerid] == 1) return SendClienMessage(playerid, KEK, \"DM kozben nem lehet\"); ResetPlayerWeapons(playerid); // meglévo fegyvereit elvesszük GivePlayerWeapon(playerid,32,1000); // Adunk neki fegyvert SetPlayerArmour(playerid, 100); // Adunk neki páncélt SetPlayerPos(playerid,2782.3257,-2019.7649,13.5620); // Teleport koordinátája ( ide teleportálja ) SendClientMessage(playerid, 0xFFFF00AA,\"Csatlakoztál a DM-hez! Kilépéshez: /exitdm\"); // Ki írunk neki egy \'infó\' szöveget DM[playerid] = true; // beállítjuk a DM változót, hogy True ( igaz ) értéket mutasson. SetPlayerVirtualWorld(playerid,DM[playerid]); // áthelyezés mási VW-be return 1; // Visszatérés}if ( !strcmp( cmdtext, \"/exitdm\" )) { DMArena[playerid] = 0; ResetPlayerWeapons(playerid); SendClientMessage( playerid, ZOLD, \"Kiléptél a DM -bol!\" ); SpawnPlayer(playerid); return 1; }return 0;}[code]D:\\Server Biz másolplás\\filterscripts\\hhh.pwn(46) : error 021: symbol already defined: \"DMArena\"D:\\Server Biz másolplás\\filterscripts\\hhh.pwn(55) : error 017: undefined symbol \"DM\"D:\\Server Biz másolplás\\filterscripts\\hhh.pwn(55) : warning 215: expression has no effectD:\\Server Biz másolplás\\filterscripts\\hhh.pwn(55) : error 001: expected token: \";\", but found \"]\"D:\\Server Biz másolplás\\filterscripts\\hhh.pwn(55) : error 029: invalid expression, assumed zeroD:\\Server Biz másolplás\\filterscripts\\hhh.pwn(55) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#pragma tabsize 0#define COLOR_RED 0xE60000FF#if defined FILTERSCRIPT public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Blank Filterscript by your name here\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" Blank Gamemode by your name here\");print(\"----------------------------------\\n\");}#endifnew DMArena[MAX_PLAYERS]; 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) { //ha van onplayerconnect csak az DMArena[playerid] = 1 et rakd be alla DMArena[playerid] = 1; return 1;}public OnPlayerDisconnect(playerid, reason){ DMArena[playerid] = false; return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if(!strcmp(cmdtext, \"/dm\", true)) { if(DMArena[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, \"DM kozben nem lehet\"); ResetPlayerWeapons(playerid); // meglévo fegyvereit elvesszük GivePlayerWeapon(playerid,32,1000); // Adunk neki fegyvert SetPlayerArmour(playerid, 100); // Adunk neki páncélt SetPlayerPos(playerid,2782.3257,-2019.7649,13.5620); // Teleport koordinátája ( ide teleportálja ) SendClientMessage(playerid, 0xFFFF00AA,\"Csatlakoztál a DM-hez! Kilépéshez: /exitdm\"); // Ki írunk neki egy \'infó\' szöveget return 1; // Visszatérés}if ( !strcmp( cmdtext, \"/exitdm\" )) { if(DMArena[playerid] == 0) { return SendClientMessage(playerid, -1, \"Nem vagy DM zonaban\"); DMArena[playerid] = 0; ResetPlayerWeapons(playerid); SendClientMessage( playerid,COLOR_RED, \"Kiléptél a DM -bol!\" ); SpawnPlayer(playerid); } return 1; } return 0;}
if(DM[playerid]>true&& strcmp(cmdtext, \"/kill\", true)&& strcmp(cmdtext, \"/weapons\", true)&& strcmp(cmdtext, \"/bomb\", true) && strcmp(cmdtext, \"/exitdm\", true) != 0)return SendClientMessage(playerid,COLOR_RED, \"[HIBA] DM zónába vagy, itt csak ezeket a parancskoat használhatod: /exitdm, /kill, /weapons /bomb\"); // ide meg írjuk azokat a parancsokat amiker használhat dm be