#define FILTERSCRIPT#include <a_samp>#define DIALOG_OBJ 666new obj[MAX_PLAYERS] = 0;new placed[MAX_PLAYERS];new editter[MAX_PLAYERS];public OnFilterScriptInit(){return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/obj\", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,DIALOG_OBJ, DIALOG_STYLE_INPUT, \"Objektlövő by JD\", \"ObjektID:\", \"Választ\", \"Bezár\"); return 1; } if (strcmp(\"/edit\", cmdtext, true, 10) == 0) { switch(editter[playerid]) { case 0:editter[playerid]=1; case 1:editter[playerid]=0; } return 1; } return 1;}forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ){if(1<obj[playerid]<19486 && weaponid == 33){placed[playerid]=CreateObject(strval(obj), fX, fY, fZ, 0.0, 0.0, 0.0);if(editter[playerid]==1){ EditObject(playerid, placed[playerid]);}}return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == DIALOG_OBJ) { if(!response) { } else { new beirt = strval(inputtext); if (1>beirt>19486) { SendClientMessage(playerid, -1, \"Helytelen objektID!\"); } else { obj[playerid] = strval(inputtext); }} return 1; } return 0;}public OnPlayerConnect(playerid){editter[playerid]=0;return 1;}
switch(editter[playerid]) { case 0:editter[playerid]=1; case 1:editter[playerid]=0; }
EditObject(playerid, object);
#define FILTERSCRIPT#include <a_samp>#define DIALOG_OBJ 666new obj[MAX_PLAYERS] = 0;new placed[MAX_PLAYERS];new editter[MAX_PLAYERS];public OnFilterScriptInit(){ return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/obj\", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,DIALOG_OBJ, DIALOG_STYLE_INPUT, \"Objektlövő by JD\", \"ObjektID:\", \"Választ\", \"Bezár\"); return 1; } if (strcmp(\"/edit\", cmdtext, true, 10) == 0) { switch(editter[playerid]) { case 0:editter[playerid]=1; case 1:editter[playerid]=0; } return 1; } return 1;}forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ){ if(1<obj[playerid]<19486 && weaponid == 33) { placed[playerid]=CreateObject(strval(obj), fX, fY, fZ, 0.0, 0.0, 0.0); if(editter[playerid]==1) { EditObject(playerid, placed[playerid]); } } return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == DIALOG_OBJ) { if(!response) { } else { new beirt = strval(inputtext); if (1>beirt>19486) { SendClientMessage(playerid, -1, \"Helytelen objektID!\"); } else { obj[playerid] = strval(inputtext); } } return 1; } return 0;}public OnPlayerConnect(playerid){ editter[playerid]=0; return 1;}