mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Kill Lua adminplayer
This commit is contained in:
parent
f344739294
commit
2c9ea284a7
1 changed files with 0 additions and 6 deletions
|
|
@ -274,12 +274,6 @@ int LUA_PushGlobals(lua_State *L, const char *word)
|
||||||
return 0;
|
return 0;
|
||||||
LUA_PushUserdata(L, &players[serverplayer], META_PLAYER);
|
LUA_PushUserdata(L, &players[serverplayer], META_PLAYER);
|
||||||
return 1;
|
return 1;
|
||||||
} else if (fastcmp(word,"admin")) { // BACKWARDS COMPATIBILITY HACK: This was replaced with IsPlayerAdmin(), but some 2.1 Lua scripts still use the admin variable. It now points to the first admin player in the array.
|
|
||||||
LUA_Deprecated(L, "admin", "IsPlayerAdmin(player)");
|
|
||||||
if (!playeringame[adminplayers[0]] || IsPlayerAdmin(serverplayer))
|
|
||||||
return 0;
|
|
||||||
LUA_PushUserdata(L, &players[adminplayers[0]], META_PLAYER);
|
|
||||||
return 1;
|
|
||||||
} else if (fastcmp(word,"emeralds")) {
|
} else if (fastcmp(word,"emeralds")) {
|
||||||
lua_pushinteger(L, emeralds);
|
lua_pushinteger(L, emeralds);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue