#include <a_samp>#define FILTERSCRIPT#if defined FILTERSCRIPTnew kapu;public OnFilterScriptInit(){ kapu = CreateObject(X,Y,Z);return 1;}#elsepublic OnGameModeInit(){ kapu = CreateObject(X,Y,Z);return 1;}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/nyit\", true) == 0) { MoveObject(lift, X,Y,Z, 2.0); // ha kinyílt, akkor kell ennek a koordinátája. return 1; } if(strcmp(cmdtext, \"/zár\", true) == 0) { MoveObject(lift, X,Y,Z, 2.0); // Vissza alaphelyzetbe return 1; }return 0;}
#include <a_samp>new lift;public OnFilterScriptInit(){lift = CreateObject(980, 96.937187, 1921.259521, 19.914503, 0.000000, 0.000000, -89.3813587446);return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid == 4000){ if(response == 1) { switch(listitem) { case 1: MoveObject(lift, 96.664063, 1921.039795, 25.762547, 1.0); case 2: MoveObject(lift, 96.937187, 1921.259521, 19.914503, 1.0); }}else{ // ide írd ki hogy kiléptél a menübol}}return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if(!strcmp(\"/liftkezelo\", cmdtext, true)) {ShowPlayerDialog(playerid, 4000, DIALOG_STYLE_LIST, \"Lift kezelo\", \"Lift fel\\nLift le\", \"Gyerünk\", \"Vissza\");return 1;}return 0;}
#include <a_samp>#define FILTERSCRIPT#if defined FILTERSCRIPTnew kapu;public OnFilterScriptInit(){ kapu = CreateObject(X,Y,Z);return 1;}#elsepublic OnGameModeInit(){ kapu = CreateObject(X,Y,Z);return 1;}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/nyit\", true) == 0) { MoveObject(lift, X,Y,Z, 2.0); // ha kinyílt, akkor kell ennek a koordinátája. return 1; } if(strcmp(cmdtext, \"/zár\", true) == 0) { MoveObject(lift, X,Y,Z, 2.0); // Vissza alaphelyzetbe return 1; }return 0;} Menüt kért.. [/quote]a részeg mindenemet, nem figyeltem.
ScreaM nem difiniálta a Dialógot.
#include < a_samp >new lift;public OnFilterScriptInit( ){lift = CreateObject ( 980, 96.937187, 1921.259521, 19.914503, 0.000000, 0.000000, -89.3813587446 );return 1;}public OnDialogResponse ( playerid, dialogid, response, listitem, inputtext[ ] ){if ( dialogid == 4000 ){ if ( response == 1 ) { switch ( listitem ) { case 0: MoveObject ( lift, 96.664063, 1921.039795, 25.762547, 1.0 ); case 1: MoveObject ( lift, 96.937187, 1921.259521, 19.914503, 1.0 ); }}else{ SendClientMessage ( playerid, 0x004562FF, \"Kiléptél a meübol\" );}}return 1;}public OnPlayerCommandText ( playerid, cmdtext [ ] ){ if ( strcmp ( cmdtext, \"/liftkezelo\", true ) == 0 ) {ShowPlayerDialog ( playerid, 4000, DIALOG_STYLE_LIST, \"Lift kezelo\", \"Lift fel\\nLift le\", \"Ok\", \"Mégse\" );return 1;}return 0;}