// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Blank Filterscript by your name here\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n----------------------------------\");
print(\" Blank Gamemode by your name here\");
print(\"----------------------------------\\n\");
}
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
SetGameModeText(\"Blank Script\");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/sniper-dm\", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1902.2263183594, -3988.7414550781, -2.9141826629639);
GivePlayerWeapon(playerid,34,50000);
SetPlayerHealth(playerid,100);
return 1;
}
if (strcmp(\"/exit-dm\", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746, 269.1425);//ide ird hova spawnoljon ha kilép a dm bõl
return 1;
}
return 0;
}
Nem teszteltem nem volt idõm:)