Hi mint írtam már a szerverem-et készítem és az alap részeit publikálom mint most ezt az Anim\'s-ot is
Animációs listáért /anims
Animáció befejezéséhez valamelyik gomb W A S D Enter Bal vagy jobb egérgomb STB..
#include <a_samp>
#define SPECIAL_ACTION_DRINK_BEER 30
#define SPECIAL_ACTION_PISSING 58
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n====================================\");
print(\"Stramm Anim\'s Alap\");
print(\"====================================\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n====================================\");
print(\"Starmm Anim\'s Alap\");
print(\"====================================\\n\");
}
#endif
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/anims\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 10410, DIALOG_STYLE_MSGBOX, \"Anim Lista\", \"/piss /dance1-4 /handsup\\n/sit/smoke /beer\", \"Igen\", \"Vissza\");
return 1;
}
if (strcmp(\"/dance\", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1);
return 1;
}
if (strcmp(\"/dance2\", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE2);
return 1;
}
if (strcmp(\"/dance3\", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE3);
return 1;
}
if (strcmp(\"/dance4\", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE4);
return 1;
}
if (strcmp(\"/sit\", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SITTING);
return 1;
}
if (strcmp(\"/handsup\", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
return 1;
}
if (strcmp(\"/smoke\", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
return 1;
}
if (strcmp(\"/piss\", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
return 1;
}
if (strcmp(\"/beer\", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
return 1;
}
return 0;
}