Van egy fs-em, az objektid-t / felrak [VALAMI]-vel kéne.
Kód:
#include <a_samp>
#define DIALOG_FELRAK 678
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Panzerfaust inkuming\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/macska\", cmdtext, true, 10) == 0)
{
SetPlayerAttachedObject(playerid, 7, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);
EditAttachedObject(playerid, 7);
return 1;
}
if(!strcmp(cmdtext, \"/felrak\", true, 7)) // 7 hosszú a /felrak
{
ShowPlayerDialog(playerid,DIALOG_FELRAK, DIALOG_STYLE_INPUT, \"Attacholó.sz*r.exe\", \"{FF0000}OBJEKTID:\", \"Felvesz\", \"Mégse\");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_FELRAK)
{
if(!response) // Mégse
{
}
else // Felrakja
{
SetPlayerAttachedObject(playerid, 7, strval(inputtext), 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);
EditAttachedObject(playerid, 7);
}
return 1;
}
return 0;
}