Hello!
Valaki tudna nekem egy dm-zónát csinálni? Már próbálgattam [Tut]-okkal de nem ment. Itt van a tele.
1902.2263183594, -3988.7414550781, -2.9141826629639
// 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:)
Ezt teszteltem... mûködik ! ;)
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/sniper-dm\", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1902.2263183594, -3988.7414550781, -2.9141826629639);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 34, 99999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
return 1;
}
if (strcmp(\"/exit-dm\", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2620.32, 1406.18, 7.09);// Ki spawnol a DM bõl, ez most Jizzy-nél spawnol de majd írd át !
ResetPlayerWeapons(playerid);
return 1;
}
return 0;
}