[Release] pick spawn and loadout

Realized my mistake with my post :)

EDIT: Guess not, so why do we enable allowed command menus in AH but turn block to false. Seems redundant?

Why not leave cmdmenu enabled but just add the cmd menus we are going to be using?
 
Last edited:
Thanks for what should have been an obvious explanation :)

Sent from Galaxy S4 using Tapatalk
 
So I am trying to use multiple variables when selecting a class but having little luck. Right now I have

if ((getPlayerUID player) in ["XxXXXxXX"] && (PlayerHumanity > 5000)) exitWith {

The specified player was set to 6000 Humanity. When he dies he defaults back to the basic loadout selection. Am I setting this wrong or using the run function by chance? Any help is appreciated.
 
OK I have something that might work probz gunna sound stupid and probz dosent work but here we go .......

I was thinking if you could make this part of code apart of the database so you don't have to restart and download mission file for one person to become donor on my server ?

if ((getPlayerUID player) in ["UID HERE"]) then { //Donater level 2
classes =
[
["",false],
["Select Donor Classes Lvl 1", [2], "#USER:Donator", -5, [["expression", ""]], "1", "1"],
["Select Donor Classes Lvl 2", [3], "#USER:Donator1", -5, [["expression", ""]], "1", "1"],
["Select Non Donor Classes", [4], "#USER:peasant", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};

Reason why I think this is possible because the table in the database you can make custom player loadouts on login

Question is ...

Can it be done ?


Thanks Peter Beer
 
Last edited:
hey,

hope someone can help me with my issiue:
Version DayZ Vanilla 1.8.0.3
when i change this in my server_playersetup.sqf:
Code:
Replace with: PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];

My advance kill-messages (who killed who) dont work right anymore. Any ideas how to fix that?
This is my serverplayerDied.sqf:
Code:
#include "\z\addons\dayz_server\compile\server_toggle_debug.hpp"

private ["_characterID","_minutes","_newObject","_playerID","_key", "_killer", "_weapon", "_distance","_loc_message","_killerName","_killerPlayerID"];
//[unit, weapon, muzzle, mode, ammo, magazine, projectile]

_characterID =     _this select 0;
_minutes =    _this select 1;
_newObject =     _this select 2;
_playerID =     _this select 3;
_playerName =     name _newObject;

_newObject setVariable["processedDeath",diag_tickTime];
_newObject setVariable ["bodyName", _playerName, true];

_killer = _newObject getVariable["AttackedBy", "nil"];
_killerName = _newObject getVariable["AttackedByName", "nil"];

// when a zombie kills a player _killer, _killerName and _weapon will be "nil"
// we can use this to determine a zombie kill and send a customized message for that. right now no killmsg means it was a zombie.
if (_killerName != "nil") then
{
    _weapon = _newObject getVariable["AttackedByWeapon", "nil"];
    _distance = _newObject getVariable["AttackedFromDistance", "nil"];

    if (_playerName == _killerName) then
    {
        _loc_message = format["PKILL: %1 killed themselves near %2", _playerName, (getPosATL _newObject) call fa_coor2str];
    }
    else
    {
        _killerPlayerID = getPlayerUID _killer;
        _loc_message = format["PKILL: %1 (%5) was killed near %7 by %2 (%6) with weapon %3 from %4m", _playerName, _killerName, _weapon, _distance, _playerID, _killerPlayerID, (getPosATL _newObject) call fa_coor2str];
    };

    diag_log _loc_message;

    // Cleanup
    _newObject setVariable["AttackedBy", "nil", true];
    _newObject setVariable["AttackedByName", "nil", true];
    _newObject setVariable["AttackedByWeapon", "nil", true];
    _newObject setVariable["AttackedFromDistance", "nil", true];
} else {
    _loc_message = format["PKILL: %1 was killed near %2", _playerName, (getPosATL _newObject) call fa_coor2str];
    diag_log _loc_message;
};

if (typeName _minutes == "STRING") then
{
    _minutes = parseNumber _minutes;
};

if (_characterID != "0") then
{
    _key = format["CHILD:202:%1:%2:",_characterID,_minutes];
    //diag_log ("HIVE: WRITE: "+ str(_key));
    _key call server_hiveWrite;
}
else
{
    deleteVehicle _newObject;
};

#ifdef PLAYER_DEBUG
format ["Player UID#%3 CID#%4 %1 as %5 died at %2",
    _newObject call fa_plr2str, (getPosATL _newObject) call fa_coor2str,
    getPlayerUID _newObject,_characterID,
    typeOf _newObject
];
#endif

//dead_bodyCleanup set [count dead_bodyCleanup,_newObject];

Thanks for any help
 
In the directions it says

4. Find this:
Code:
_watched =
Remove the items in your loadouts from the list.

What happens if i don't remove items from this list?
 
also, I'm getting an error on this line. can anyone tell me what I did wrong?

_allowed = [_Pwep,_Cwep,DayZ_onBack,_TMP_onBack,'Winchester1866','MP5SD','Sa58P_EP1','huntingrifle','AK_74','M4A1','LeeEnfield','BAF_L85A2_RIS_Holo','M9','15Rnd_9x19_M9','30Rnd_9x19_MP5SD','30Rnd_545x39_AK','30Rnd_762x39_SA58','30Rnd_556x45_Stanag','5x_22_LR_17_HMR','8Rnd_B_Beneli_74Slug','ItemFlashlightRed','ItemHatchet','ItemMap','Itemmatchbox','Itemtoolbox','15Rnd_W1866_Slug','10x_303','ItemBandage','ItemPainkiller','FoodMRE','ItemWaterbottle','ItemMorphine','DZ_British_ACU','DZ_TK_Assault_Pack_EP1','DZ_CivilBackpack_EP1',"DZ_LargeGunBag_EP1"];
 
also, it seems everyone is logging in as a reg player. no donor or clan group seems to be working. Here is my code. is this correct>

EDIT: found the problem. changed the " then {" to "exitWith {"

pathtonewspawn = "newspawn\locations\";
EXECscript1 = 'player execVM "'+pathtonewspawn+'%1"';

ZyG =
[
["",false],
["Balota", [2], "", -5, [["expression", format[EXECscript1,"balota.sqf"]]], "1", "1"],
["Berezino", [3], "", -5, [["expression", format[EXECscript1,"berezino.sqf"]]], "1", "1"],
["Cherno", [4], "", -5, [["expression", format[EXECscript1,"cherno.sqf"]]], "1", "1"],
["Elektro", [5], "", -5, [["expression", format[EXECscript1,"elektro.sqf"]]], "1", "1"],
["Kamenka", [6], "", -5, [["expression", format[EXECscript1,"kamenka.sqf"]]], "1", "1"],
["Gorka", [7], "", -5, [["expression", format[EXECscript1,"gorka.sqf"]]], "1", "1"],
["Grishino", [8], "", -5, [["expression", format[EXECscript1,"grishino.sqf"]]], "1", "1"],
["Kabanino", [9], "", -5, [["expression", format[EXECscript1,"kabanino.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Next page", [12], "#USER:page4", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

DONATION =
[
["",false],
["Balota", [2], "", -5, [["expression", format[EXECscript1,"balota.sqf"]]], "1", "1"],
["Berezino", [3], "", -5, [["expression", format[EXECscript1,"berezino.sqf"]]], "1", "1"],
["Cherno", [4], "", -5, [["expression", format[EXECscript1,"cherno.sqf"]]], "1", "1"],
["Elektro", [5], "", -5, [["expression", format[EXECscript1,"elektro.sqf"]]], "1", "1"],
["Kamenka", [6], "", -5, [["expression", format[EXECscript1,"kamenka.sqf"]]], "1", "1"],
["Gorka", [7], "", -5, [["expression", format[EXECscript1,"gorka.sqf"]]], "1", "1"],
["Grishino", [8], "", -5, [["expression", format[EXECscript1,"grishino.sqf"]]], "1", "1"],
["Kabanino", [9], "", -5, [["expression", format[EXECscript1,"kabanino.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Next page", [12], "#USER:page4", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

SGUEST =
[
["",false],
["Balota", [2], "", -5, [["expression", format[EXECscript1,"balota.sqf"]]], "1", "1"],
["Berezino", [3], "", -5, [["expression", format[EXECscript1,"berezino.sqf"]]], "1", "1"],
["Cherno", [4], "", -5, [["expression", format[EXECscript1,"cherno.sqf"]]], "1", "1"],
["Elektro", [5], "", -5, [["expression", format[EXECscript1,"elektro.sqf"]]], "1", "1"],
["Kamenka", [6], "", -5, [["expression", format[EXECscript1,"kamenka.sqf"]]], "1", "1"],
["Gorka", [7], "", -5, [["expression", format[EXECscript1,"gorka.sqf"]]], "1", "1"],
["Grishino", [8], "", -5, [["expression", format[EXECscript1,"grishino.sqf"]]], "1", "1"],
["Kabanino", [9], "", -5, [["expression", format[EXECscript1,"kabanino.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Next page", [12], "#USER:page4", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

Peasant =
[
["",false],
["Balota", [2], "", -5, [["expression", format[EXECscript1,"balota.sqf"]]], "1", "1"],
["Cherno", [3], "", -5, [["expression", format[EXECscript1,"cherno.sqf"]]], "1", "1"],
["Elektro", [4], "", -5, [["expression", format[EXECscript1,"elektro.sqf"]]], "1", "1"],
["Kamenka", [5], "", -5, [["expression", format[EXECscript1,"kamenka.sqf"]]], "1", "1"],
["Komarovo", [6], "", -5, [["expression", format[EXECscript1,"komarovo.sqf"]]], "1", "1"],
["Solnichniy", [7], "", -5, [["expression", format[EXECscript1,"solnichniy.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [10], "", -3, [["expression", ""]], "1", "1"]
];

Page4 =
[
["",false],
["Kamyshovo", [2], "", -5, [["expression", format[EXECscript1,"kamyshovo.sqf"]]], "1", "1"],
["Komarovo", [3], "", -5, [["expression", format[EXECscript1,"komarovo.sqf"]]], "1", "1"],
["Krasnostav", [4], "", -5, [["expression", format[EXECscript1,"krasnostav.sqf"]]], "1", "1"],
["Pogorevka", [5], "", -5, [["expression", format[EXECscript1,"pogorevka.sqf"]]], "1", "1"],
["Prigor", [6], "", -5, [["expression", format[EXECscript1,"prigor.sqf"]]], "1", "1"],
["Pusta", [7], "", -5, [["expression", format[EXECscript1,"pusta.sqf"]]], "1", "1"],
["Solnichniy", [8], "", -5, [["expression", format[EXECscript1,"solnichniy.sqf"]]], "1", "1"],
["Vybor", [9], "", -5, [["expression", format[EXECscript1,"vybor.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Previous Page", [12], "", -4, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];


if ((getPlayerUID player) in ["90850822","93627398","234452614","127624838","79296390","86537478","234421894","62427270","70226438","120316806","47941638","118322950"]) then {
newspawn =
[
["",false],
["Select Spawn Point", [2], "#USER:ZyG", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
showCommandingMenu "#USER:newspawn";};

if ((getPlayerUID player) in ["0","0"]) then {
newspawn =
[
["",false],
["Select Spawn Point", [2], "#USER:DONATION", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
showCommandingMenu "#USER:newspawn";};

if ((getPlayerUID player) in ["66699334","32030470","67033286","1735488","1660928","149707846"]) then {
newspawn =
[
["",false],
["Select Spawn Point", [2], "#USER:SGUEST", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
showCommandingMenu "#USER:newspawn";};

newspawn =
[
["",false],
["Select Spawn Point", [2], "#USER:peasant", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
showCommandingMenu "#USER:newspawn";
 
Last edited:
EDIT: found my answer here - http://opendayz.net/threads/release...wn-spawn-point-and-loadout.13149/page-2#post-

Post 29
--------------------------------------------------------------------------------------------------------
) then {
classes =
[
["",false],
["Select Class", [2], "#USER:ZyG", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];} else {

if ((getPlayerUID player) in ["0","0","0"]) then {
classes =
[
["",false],
["Select Class", [2], "#USER:DONATION", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];} else {

if ((getPlayerUID player) in ["66699334","32030470","67033286","1735488","1660928","149707846"]) then {
classes =
[
["",false],
["Select Class", [2], "#USER:SGUEST", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];} else {

classes =
[
["",false],
["Select Class", [2], "#USER:peasant", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};

ZyG =
[
["",false],
["British Soldier", [2], "", -5, [["expression", format[EXECscript1,"zbritishs.sqf"]]], "1", "1"],
["Civilian", [3], "", -5, [["expression", format[EXECscript1,"zcivilian.sqf"]]], "1", "1"],
["Civilian Lady", [4], "", -5, [["expression", format[EXECscript1,"zcivilianl.sqf"]]], "1", "1"],
["Czech Soldier", [5], "", -5, [["expression", format[EXECscript1,"zczechs.sqf"]]], "1", "1"],
["US Soldier", [6], "", -5, [["expression", format[EXECscript1,"zuss.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [8], "", -3, [["expression", ""]], "1", "1"]
];

DONATION =
[
["",false],
["British Soldier", [2], "", -5, [["expression", format[EXECscript1,"britishs.sqf"]]], "1", "1"],
["Civilian", [3], "", -5, [["expression", format[EXECscript1,"civilian.sqf"]]], "1", "1"],
["Civilian Lady", [4], "", -5, [["expression", format[EXECscript1,"civilianl.sqf"]]], "1", "1"],
["Czech Soldier", [5], "", -5, [["expression", format[EXECscript1,"czechs.sqf"]]], "1", "1"],
["US Soldier", [6], "", -5, [["expression", format[EXECscript1,"uss.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [8], "", -3, [["expression", ""]], "1", "1"]
];

SGUEST =
[
["",false],
["British Soldier", [2], "", -5, [["expression", format[EXECscript1,"britishs.sqf"]]], "1", "1"],
["Civilian", [3], "", -5, [["expression", format[EXECscript1,"civilian.sqf"]]], "1", "1"],
["Civilian Lady", [4], "", -5, [["expression", format[EXECscript1,"civilianl.sqf"]]], "1", "1"],
["Czech Soldier", [5], "", -5, [["expression", format[EXECscript1,"czechs.sqf"]]], "1", "1"],
["US Soldier", [6], "", -5, [["expression", format[EXECscript1,"uss.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [8], "", -3, [["expression", ""]], "1", "1"]
];

Peasant =
[
["",false],
["Civilian", [2], "", -5, [["expression", format[EXECscript1,"pcivilian.sqf"]]], "1", "1"],
["Civilian Lady", [4], "", -5, [["expression", format[EXECscript1,"pcivilianl.sqf"]]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [6], "", -3, [["expression", ""]], "1", "1"]
];

showCommandingMenu "#USER:classes";[/CODE]
 
Last edited:
how do i do mutliply donator classes? like for the spawn but i want 2 donator classes, so people who donate less then £10 get the first donator class and the people who donate more than £10 get the second donator class, please help someone. i tried setting it up like the multiply donator spawn menu but it doesnt work
 
this worked for me. Change to suit.

For newspawn_main.sqf
Code:
pathtonewspawn = "newspawn\locations\";
EXECscript1 = 'player execVM "'+pathtonewspawn+'%1"';

ZyG =
[
    ["",false],
        ["Balota", [2], "", -5, [["expression", format[EXECscript1,"balota.sqf"]]], "1", "1"],
        ["Berezino", [3], "", -5, [["expression", format[EXECscript1,"berezino.sqf"]]], "1", "1"],
        ["Cherno", [4], "", -5, [["expression", format[EXECscript1,"cherno.sqf"]]], "1", "1"],
        ["Elektro", [5], "", -5, [["expression", format[EXECscript1,"elektro.sqf"]]], "1", "1"],
        ["Kamenka", [6], "", -5, [["expression", format[EXECscript1,"kamenka.sqf"]]], "1", "1"],
        ["Gorka", [7], "", -5, [["expression", format[EXECscript1,"gorka.sqf"]]], "1", "1"],
        ["Grishino", [8], "", -5, [["expression", format[EXECscript1,"grishino.sqf"]]], "1", "1"],
        ["Kabanino", [9], "", -5, [["expression", format[EXECscript1,"kabanino.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
        ["Next page", [12], "#USER:Page4", -5, [["expression", ""]], "1", "1"],
        ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

DONATION =
[
    ["",false],
        ["Balota", [2], "", -5, [["expression", format[EXECscript1,"balota.sqf"]]], "1", "1"],
        ["Berezino", [3], "", -5, [["expression", format[EXECscript1,"berezino.sqf"]]], "1", "1"],
        ["Cherno", [4], "", -5, [["expression", format[EXECscript1,"cherno.sqf"]]], "1", "1"],
        ["Elektro", [5], "", -5, [["expression", format[EXECscript1,"elektro.sqf"]]], "1", "1"],
        ["Kamenka", [6], "", -5, [["expression", format[EXECscript1,"kamenka.sqf"]]], "1", "1"],
        ["Gorka", [7], "", -5, [["expression", format[EXECscript1,"gorka.sqf"]]], "1", "1"],
        ["Grishino", [8], "", -5, [["expression", format[EXECscript1,"grishino.sqf"]]], "1", "1"],
        ["Kabanino", [9], "", -5, [["expression", format[EXECscript1,"kabanino.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
        ["Next page", [12], "#USER:Page4", -5, [["expression", ""]], "1", "1"],
        ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

SGUEST =
[
    ["",false],
        ["Balota", [2], "", -5, [["expression", format[EXECscript1,"balota.sqf"]]], "1", "1"],
        ["Berezino", [3], "", -5, [["expression", format[EXECscript1,"berezino.sqf"]]], "1", "1"],
        ["Cherno", [4], "", -5, [["expression", format[EXECscript1,"cherno.sqf"]]], "1", "1"],
        ["Elektro", [5], "", -5, [["expression", format[EXECscript1,"elektro.sqf"]]], "1", "1"],
        ["Kamenka", [6], "", -5, [["expression", format[EXECscript1,"kamenka.sqf"]]], "1", "1"],
        ["Gorka", [7], "", -5, [["expression", format[EXECscript1,"gorka.sqf"]]], "1", "1"],
        ["Grishino", [8], "", -5, [["expression", format[EXECscript1,"grishino.sqf"]]], "1", "1"],
        ["Kabanino", [9], "", -5, [["expression", format[EXECscript1,"kabanino.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
        ["Next page", [12], "#USER:Page4", -5, [["expression", ""]], "1", "1"],
        ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

Peasant =
[
    ["",false],
        ["Balota", [2], "", -5, [["expression", format[EXECscript1,"balota.sqf"]]], "1", "1"],
        ["Cherno", [3], "", -5, [["expression", format[EXECscript1,"cherno.sqf"]]], "1", "1"],
        ["Elektro", [4], "", -5, [["expression", format[EXECscript1,"elektro.sqf"]]], "1", "1"],
        ["Kamenka", [5], "", -5, [["expression", format[EXECscript1,"kamenka.sqf"]]], "1", "1"],
        ["Komarovo", [6], "", -5, [["expression", format[EXECscript1,"komarovo.sqf"]]], "1", "1"],
        ["Solnichniy", [7], "", -5, [["expression", format[EXECscript1,"solnichniy.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
              ["Exit", [10], "", -3, [["expression", ""]], "1", "1"]
];

Page4 =
[
    ["",false],
        ["Kamyshovo", [2], "", -5, [["expression", format[EXECscript1,"kamyshovo.sqf"]]], "1", "1"],
        ["Komarovo", [3], "", -5, [["expression", format[EXECscript1,"komarovo.sqf"]]], "1", "1"],
        ["Krasnostav", [4], "", -5, [["expression", format[EXECscript1,"krasnostav.sqf"]]], "1", "1"],
        ["Pogorevka", [5], "", -5, [["expression", format[EXECscript1,"pogorevka.sqf"]]], "1", "1"],
        ["Prigor", [6], "", -5, [["expression", format[EXECscript1,"prigor.sqf"]]], "1", "1"],
        ["Pusta", [7], "", -5, [["expression", format[EXECscript1,"pusta.sqf"]]], "1", "1"],
        ["Solnichniy", [8], "", -5, [["expression", format[EXECscript1,"solnichniy.sqf"]]], "1", "1"],
        ["Vybor", [9], "", -5, [["expression", format[EXECscript1,"vybor.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Previous Page", [12], "", -4, [["expression", ""]], "1", "1"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];


if ((getPlayerUID player) in ["90850822","93627398","234452614","127624838","79296390","86537478","234421894","62427270","70226438","47941638","118322950","120316806" ]) exitWith {
newspawn =
[
    ["",false],
        ["Select Spawn Point", [2], "#USER:ZyG", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]    
];
showCommandingMenu "#USER:newspawn";};

if ((getPlayerUID player) in ["0","0"]) exitWith {
newspawn =
[
    ["",false],
        ["Select Spawn Point", [2], "#USER:DONATION", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]    
];
showCommandingMenu "#USER:newspawn";};

if ((getPlayerUID player) in ["66699334","32030470","67033286","1735488","1660928","149707846"]) exitWith {
newspawn =
[
    ["",false],
        ["Select Spawn Point", [2], "#USER:SGUEST", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]    
];
showCommandingMenu "#USER:newspawn";};

newspawn =
[
    ["",false],
        ["Select Spawn Point", [2], "#USER:Peasant", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
showCommandingMenu "#USER:newspawn";
 
For classes_main.sqf

Code:
// "120316806",
pathtoclasses = "newspawn\classes\";
EXECscript1 = 'player execVM "'+pathtoclasses+'%1"';
ZyG =
[
    ["",false],
        ["British Soldier", [2], "", -5, [["expression", format[EXECscript1,"zbritishs.sqf"]]], "1", "1"],
        ["Civilian", [3], "", -5, [["expression", format[EXECscript1,"zcivilian.sqf"]]], "1", "1"],
        ["Civilian Lady", [4], "", -5, [["expression", format[EXECscript1,"zcivilianl.sqf"]]], "1", "1"],
        ["Czech Soldier", [5], "", -5, [["expression", format[EXECscript1,"zczechs.sqf"]]], "1", "1"],
        ["US Soldier", [6], "", -5, [["expression", format[EXECscript1,"zuss.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [8], "", -3, [["expression", ""]], "1", "1"]
];

DONATION =
[
    ["",false],
        ["British Soldier", [2], "", -5, [["expression", format[EXECscript1,"britishs.sqf"]]], "1", "1"],
        ["Civilian", [3], "", -5, [["expression", format[EXECscript1,"civilian.sqf"]]], "1", "1"],
        ["Civilian Lady", [4], "", -5, [["expression", format[EXECscript1,"civilianl.sqf"]]], "1", "1"],
        ["Czech Soldier", [5], "", -5, [["expression", format[EXECscript1,"czechs.sqf"]]], "1", "1"],
        ["US Soldier", [6], "", -5, [["expression", format[EXECscript1,"uss.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [8], "", -3, [["expression", ""]], "1", "1"]
];

SGUEST =
[
    ["",false],
        ["British Soldier", [2], "", -5, [["expression", format[EXECscript1,"britishs.sqf"]]], "1", "1"],
        ["Civilian", [3], "", -5, [["expression", format[EXECscript1,"civilian.sqf"]]], "1", "1"],
        ["Civilian Lady", [4], "", -5, [["expression", format[EXECscript1,"civilianl.sqf"]]], "1", "1"],
        ["Czech Soldier", [5], "", -5, [["expression", format[EXECscript1,"czechs.sqf"]]], "1", "1"],
        ["US Soldier", [6], "", -5, [["expression", format[EXECscript1,"uss.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [8], "", -3, [["expression", ""]], "1", "1"]
];

Peasant =
[
    ["",false],
        ["Civilian", [2], "", -5, [["expression", format[EXECscript1,"pcivilian.sqf"]]], "1", "1"],
        ["Civilian Lady", [4], "", -5, [["expression", format[EXECscript1,"pcivilianl.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [6], "", -3, [["expression", ""]], "1", "1"]
];

if ((getPlayerUID player) in ["90850822","93627398","234452614","127624838","79296390","86537478","234421894","62427270","70226438","47941638","118322950","120316806"]) exitWith {
classes =
[
    ["",false],
        ["Select Class", [2], "#USER:ZyG", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
     
];showCommandingMenu "#USER:classes";};
if ((getPlayerUID player) in ["0","0","0"]) exitWith {
classes =
[
    ["",false],
        ["Select Class", [2], "#USER:DONATION", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
     
];showCommandingMenu "#USER:classes";};
if ((getPlayerUID player) in ["66699334","32030470","67033286","1735488","1660928","149707846"]) exitWith {
classes =
[
    ["",false],
        ["Select Class", [2], "#USER:SGUEST", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
     
];showCommandingMenu "#USER:classes";};

classes =
[
    ["",false],
        ["Select Class", [2], "#USER:Peasant", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];showCommandingMenu "#USER:classes";
 
Hello, I would like to use this script on Taviana 2.0. I have now spent hours trying to install it but it does not work. Can I perhaps someone here help to install it? It would be best if someone could implement it.

I have got this working on my Epoch Taviana private server. I have used the the trader cities as spawn points, because I already had the coordinates. I intend to make the spawn points more random by adding more coordinates and I'll probably be adding new spawn points entirely, but that may take me a while as I'm still setting up my server and my to-do-list is long.

In newspawn_main.sqf
Code:
pathtonewspawn = "newspawn\locations\";
EXECscript1 = 'player execVM "'+pathtonewspawn+'%1"';
if ((getPlayerUID player) in ["0","0","0"]) then {
newspawn =
[
    ["",false],
        ["Select Spawn Point", [2], "#USER:Donator", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
      
];} else {
newspawn =
[
    ["",false],
        ["Select Spawn Point", [2], "#USER:Peasant", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
      
];};

Donator =
[
    ["",false],
        ["Donor Base", [2], "", -5, [["expression", format[EXECscript1,"donor.sqf"]]], "1", "1"],
        ["Bilgrad", [3], "", -5, [["expression", format[EXECscript1,"TraderCityBilgrad.sqf"]]], "1", "1"],
        ["Branibor", [4], "", -5, [["expression", format[EXECscript1,"TraderCityBranibor.sqf"]]], "1", "1"],
        ["Lyepestok", [5], "", -5, [["expression", format[EXECscript1,"TraderCityLyepestok.sqf"]]], "1", "1"],
        ["Sabina", [6], "", -5, [["expression", format[EXECscript1,"TraderCitySabina.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Next page", [12], "#USER:Page4", -5, [["expression", ""]], "1", "1"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

Peasant =
[
    ["",false],
        ["Bilgrad", [3], "", -5, [["expression", format[EXECscript1,"TraderCityBilgrad.sqf"]]], "1", "1"],
        ["Branibor", [4], "", -5, [["expression", format[EXECscript1,"TraderCityBranibor.sqf"]]], "1", "1"],
        ["Lyepestok", [5], "", -5, [["expression", format[EXECscript1,"TraderCityLyepestok.sqf"]]], "1", "1"],
        ["Sabina", [6], "", -5, [["expression", format[EXECscript1,"TraderCitySabina.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Next page", [12], "#USER:Page4", -5, [["expression", ""]], "1", "1"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

Page4 =
[
    ["",false],
        ["Bilgrad", [3], "", -5, [["expression", format[EXECscript1,"TraderCityBilgrad.sqf"]]], "1", "1"],
        ["Branibor", [4], "", -5, [["expression", format[EXECscript1,"TraderCityBranibor.sqf"]]], "1", "1"],
        ["Lyepestok", [5], "", -5, [["expression", format[EXECscript1,"TraderCityLyepestok.sqf"]]], "1", "1"],
        ["Sabina", [6], "", -5, [["expression", format[EXECscript1,"TraderCitySabina.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Previous Page", [12], "", -4, [["expression", ""]], "1", "1"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

showCommandingMenu "#USER:newspawn";


In the locations folder I have these four files:

TraderCityBilgrad.sqf
Code:
private ["_ebayrandomspawn"];
if (dayz_combat == 1) then {
titleText ["You can't select a spawn point while in combat.", "PLAIN DOWN", 3];
sleep 5;
titleFadeOut 1;
} else {
titleText ["Spawning at selected location...", "PLAIN DOWN", 3];
_ebayrandomspawn = [[5538.7354,8762.2695,0.001]] call BIS_fnc_selectRandom;
player setPosATL _ebayrandomspawn;
showCommandingMenu '';
sleep 2;
titleText ["Spawned!", "PLAIN DOWN", 3];
sleep 2;
titleFadeOut 1;
execVM "newspawn\classes_execute.sqf";
};

TraderCityBranibor.sqf
Code:
private ["_ebayrandomspawn"];
if (dayz_combat == 1) then {
titleText ["You can't select a spawn point while in combat.", "PLAIN DOWN", 3];
sleep 5;
titleFadeOut 1;
} else {
titleText ["Spawning at selected location...", "PLAIN DOWN", 3];
_ebayrandomspawn = [[7376.6084,4296.5879,0.001]] call BIS_fnc_selectRandom;
player setPosATL _ebayrandomspawn;
showCommandingMenu '';
sleep 2;
titleText ["Spawned!", "PLAIN DOWN", 3];
sleep 2;
titleFadeOut 1;
execVM "newspawn\classes_execute.sqf";
};

TraderCityLyepestok.sqf
Code:
private ["_ebayrandomspawn"];
if (dayz_combat == 1) then {
titleText ["You can't select a spawn point while in combat.", "PLAIN DOWN", 3];
sleep 5;
titleFadeOut 1;
} else {
titleText ["Spawning at selected location...", "PLAIN DOWN", 3];
_ebayrandomspawn = [[11698.81,15210.121,0.001]] call BIS_fnc_selectRandom;
player setPosATL _ebayrandomspawn;
showCommandingMenu '';
sleep 2;
titleText ["Spawned!", "PLAIN DOWN", 3];
sleep 2;
titleFadeOut 1;
execVM "newspawn\classes_execute.sqf";
};

TraderCitySabina.sqf
Code:
private ["_ebayrandomspawn"];
if (dayz_combat == 1) then {
titleText ["You can't select a spawn point while in combat.", "PLAIN DOWN", 3];
sleep 5;
titleFadeOut 1;
} else {
titleText ["Spawning at selected location...", "PLAIN DOWN", 3];
_ebayrandomspawn = [[15309.663,9278.4912,0.001]] call BIS_fnc_selectRandom;
player setPosATL _ebayrandomspawn;
showCommandingMenu '';
sleep 2;
titleText ["Spawned!", "PLAIN DOWN", 3];
sleep 2;
titleFadeOut 1;
execVM "newspawn\classes_execute.sqf";
};

I hope this helps. If you need more info, let me know.
 
trying to figure out how to make this for admins to select or play one of the 3 tiers based on there humanity

pathtoclasses = "newspawn\classes\";
EXECscript1 = 'player execVM "'+pathtoclasses+'%1"';
PlayerHumanity = (player getVariable "humanity");
if (PlayerHumanity > 500000) then {
classes =
[
["",false],
["Select Class", [2], "#USER:ADMIN", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};


Not sure correct placement of this
if ((getPlayerUID player) in ["0","0","0"])

and if i have to add to each humanity rank tiers?
 
Hello, I'm trying to get these scripts to work but I am having trouble with classes_main.sqf:

Code:
// "171287686",
pathtoclasses = "newspawn\classes\";
EXECscript1 = 'player execVM "'+pathtoclasses+'%1"';
Greenman =
[
    ["",false],
        ["Survivor", [2], "", -5, [["expression", format[EXECscript1,"britishs.sqf"]]], "1", "1"],
        ["Bambi", [3], "", -5, [["expression", format[EXECscript1,"civilian.sqf"]]], "1", "1"],
        ["Bambi Gal", [4], "", -5, [["expression", format[EXECscript1,"civilianl.sqf"]]], "1", "1"],
        ["Czech Soldier", [5], "", -5, [["expression", format[EXECscript1,"czechs.sqf"]]], "1", "1"],
        ["Elite", [6], "", -5, [["expression", format[EXECscript1,"uss.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [8], "", -3, [["expression", ""]], "1", "1"]
];

Bambi =
[
    ["",false],
        ["Bambi", [3], "", -5, [["expression", format[EXECscript1,"civilian.sqf"]]], "1", "1"],
        ["Bambi Gal", [4], "", -5, [["expression", format[EXECscript1,"civilianl.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [8], "", -3, [["expression", ""]], "1", "1"]
];

Surivior =
[
    ["",false],
        ["Survivor", [2], "", -5, [["expression", format[EXECscript1,"britishs.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [8], "", -3, [["expression", ""]], "1", "1"]
];

Elite =
[
    ["",false],
        ["Elite", [3], "", -5, [["expression", format[EXECscript1,"uss.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [8], "", -3, [["expression", ""]], "1", "1"]
];

Peasant =
[
    ["",false],
        ["Default Loadout", [2], "", -5, [["expression", format[EXECscript1,"businessman.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [6], "", -3, [["expression", ""]], "1", "1"]
];

];showCommandingMenu "#USER:classes";};
if ((getPlayerUID player) in ["171287686","0","0","0","0","0","0","0","0","0","0","0"]) exitWith {
classes =
[
    ["",false],
        ["Select Class", [2], "#USER:Greenman", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
    
];showCommandingMenu "#USER:classes";};
if ((getPlayerUID player) in ["0","0","0"]) exitWith {
classes =
[
    ["",false],
        ["Select Class", [2], "#USER:Bambi", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
    
];showCommandingMenu "#USER:classes";};
if ((getPlayerUID player) in ["0","0","0","0","0","0"]) exitWith {
classes =
[
    ["",false],
        ["Select Class", [2], "#USER:Survivor", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
           
];showCommandingMenu "#USER:classes";};
if ((getPlayerUID player) in ["0","0","0","0","0","0"]) exitWith {
classes =
[
    ["",false],
        ["Select Class", [2], "#USER:Elite", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
    
];showCommandingMenu "#USER:classes";};

classes =
[
    ["",false],
        ["Select Class", [2], "#USER:Peasant", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];showCommandingMenu "#USER:classes";

When i spawn, the spawn location mouse scroll menu works and when I'm teleported, it says "choose your class by using the scroll bar" but the option to choose my class doesn't show. Thanks, Greenman
 
Back
Top