- Joined
- Apr 2, 2013
- Messages
- 1,098
- Reaction score
- 4,625
Simple tutorial, how to enable some developer privileges. |
declare @in_CustomerID int;
declare @in_User nvarchar(64);
declare @in_IsDeveloper int;
SET @in_User = 'Yuri-BR'; -- Email or Gamertag
SET @in_IsDeveloper = 126; -- IsDeveloper DAA (0, 2, 6, 14, 30, 62, 126, 254, 510)
UPDATE D
SET IsDeveloper = @in_IsDeveloper
FROM UsersData D
JOIN Accounts A
ON D.CustomerID = A.CustomerID
JOIN UsersChars C
ON A.CustomerID = C.CustomerID
WHERE
A.email = @in_User OR C.Gamertag = @in_User
I never understood how it was calculated in the source
DAA_ENABLED = 1<<0, // legacy, shouldn't be used
DAA_DEV_ICON = 1<<1, // dev icon in player list, red text in chat
DAA_INVISIBLE = 1<<7, // player model is totally invisible!
if(gUserProfile.ProfileData.isDevAccount [COLOR=#ff0000][B]&[/B][/COLOR] wiUserProfile::DAA_INVISIBLE) {
if(gUserProfile.ProfileData.isDevAccount [COLOR=#FF0000][B]&[/B][/COLOR] wiUserProfile::DAA_INVISIBLE) {
Enable only one of the functions, use these decimal values in red corresponding to your function: | |
IsDeveloper | Enable |
2 | DAA_DEV_ICON |
4 | DAA_TELEPORT |
8 | DAA_SPAWN_ITEM |
16 | DAA_KICK |
32 | DAA_BAN |
64 | DAA_GOD |
128 | DAA_INVISIBLE |
256 | DAA_HIDDEN |
Enable all functions without (DEV_ICON, INVISIBLE and HIDDEN) | |
124 | DAA_TELEPORT // can teleport or teleport to player, or get player location DAA_SPAWN_ITEM // can spawn items via /gi command DAA_KICK // can kick players from server DAA_BAN // can permanently ban ppl DAA_GOD // can enable god mode |
Enable all functions without (SPAWN_ITEM, INVISIBLE and HIDDEN) | |
118 | DAA_DEV_ICON // dev icon in player list, red text in chat DAA_TELEPORT // can teleport or teleport to player, or get player location DAA_KICK // can kick players from server DAA_BAN // can permanently ban ppl DAA_GOD // can enable god mode |
Enable only (DEV_ICON and KICK) | |
18 | DAA_DEV_ICON // dev icon in player list, red text in chat DAA_KICK // can kick players from server |
Enable only (DEV_ICON and BAN) | |
34 | DAA_DEV_ICON // dev icon in player list, red text in chat DAA_BAN // can permanently ban ppl |
Enable only (DEV_ICON, KICK and BAN) | |
50 | DAA_DEV_ICON // dev icon in player list, red text in chat DAA_KICK // can kick players from server DAA_BAN // can permanently ban ppl |
[mental]Shift bits and get decimal value, you can use calculator for that ;P[/mental]I never understood how it was calculated in the source
I don't quite understand this. Can this be used in Infestation NewZ?
I don't quite understand this. Can this be used in Infestation NewZ?
I don't quite understand this. Can this be used in Infestation NewZ?
Simple tutorial, how to enable some developer privileges.
[TD][/TD]
[TR]
[TD]IsDeveloper[/TD]
[TD]
Enable[/TD]
[/TR]
[TR]
[TD]
0[/TD]
[TD]
Nothing![/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]
DEV_ICON // dev icon in player list, red text in chat
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]
DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]
DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
[/TD]
[/TR]
[TR]
[TD]30[/TD]
[TD]
DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
[/TD]
[/TR]
[TR]
[TD]62[/TD]
[TD]
DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl
[/TD]
[/TR]
[TR]
[TD]126[/TD]
[TD]
DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl
GOD // can enable god mode
[/TD]
[/TR]
[TR]
[TD]254[/TD]
[TD]
DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl
GOD // can enable god mode
INVISIBLE // player model is totally invisible!
[/TD]
[/TR]
[TR]
[TD]510[/TD]
[TD]
DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl
GOD // can enable god mode
INVISIBLE // player model is totally invisible!
HIDDEN // do not show up in player list
[/TD]
[/TR]
[TR]
[TD]
First you need to access your WarZ database and set IsDeveloper in UsersData with the desired value, or use my simple query.
[/TD]PHP:declare @in_CustomerID int; declare @in_User nvarchar(64); declare @in_IsDeveloper int; SET @in_User = 'Yuri-BR'; -- Email or Gamertag SET @in_IsDeveloper = 126; -- IsDeveloper DAA (0, 2, 6, 14, 30, 62, 126, 254, 510) UPDATE D SET IsDeveloper = @in_IsDeveloper FROM UsersData D JOIN Accounts A ON D.CustomerID = A.CustomerID JOIN UsersChars C ON A.CustomerID = C.CustomerID WHERE A.email = @in_User OR C.Gamertag = @in_User
[TD][/TD]
[/TR]
[/td]