#include <a_samp>#include <zcmd>new dialog_1;#define piros 0xFF000000public OnFilterScriptInit(){print(\"Dialogos Skinváltó Script Betöltése...\");return 1;}public OnFilterScriptExit(){return 1;}public OnPlayerConnect(playerid){SendClientMessage(playerid,piros,\"Dialogos SkinVáltó betöltve by:Shadee\");SendClientMessage(playerid,piros,\"használat /skincsere!\");return 1;} CMD:skin(playerid, params[]) ShowPlayerDialog(playerid,dialog_1,DIALOG_STYLE_INPUT,\"Írd be a Skin ID-t!\",\"(0-298)\",\"Skincsere\",\"\");return 1;} public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid == dialog_1)SetPlayerSkin(playerid,strval(inputtext));SendClientMessage(playerid,piros,\"A Skined Skieresen lecserélted!\");return 1;}
#include < a_samp >#include < zcmd >#define DIALOG_SKINCHANGE 100new s_szMessage[ 40 ]; CMD:skin( playerid, params [ ] ){ ShowPlayerDialog( playerid, DIALOG_SKINCHANGE, DIALOG_STYLE_INPUT, \"SkinVáltás\", \"Írd be a Skin ID-t! (0-299)\", \"Vált\", \"Mégse\" );return 1;} public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ){ switch( dialogid ) { case DIALOG_SKINCHANGE: { SetPlayerSkin( playerid, strval(inputtext) ); format( s_szMessage, sizeof( s_szMessage ), \"Átállítottad a skinedet! ID: %d\", inputtext ); SendClientMessage( playerid, 0xFF0000AA, s_szMessage ); } } return 1;}