Postado Agosto 8, 2015 10 anos luascript.cpp getPlayerSecureMode(cid): PHP: int32_t LuaScriptInterface :: luaGetPlayerSecureMode ( lua_State * L ) { //getPlayerSecureMode(cid) ScriptEnviroment * env = getEnv (); Player * player = env -> getPlayerByUID (( uint32_t ) popNumber ( L )); if(! player ) { errorEx ( getError ( LUA_ERROR_PLAYER_NOT_FOUND )); lua_pushboolean ( L , false ); } else lua_pushnumber ( L , player -> getSecureMode ()); return 1 ; } getPlayerFightMode(cid): PHP: int32_t LuaScriptInterface :: luaGetPlayerFightMode ( lua_State * L ) { //getPlayerFightMode(cid) ScriptEnviroment * env = getEnv (); Player * player = env -> getPlayerByUID (( uint32_t ) popNumber ( L )); if(! player ) { errorEx ( getError ( LUA_ERROR_PLAYER_NOT_FOUND )); lua_pushboolean ( L , false ); } else lua_pushnumber ( L , player -> getAttackFactor ()); return 1 ; } simple and useful. https://otland.net/t...ode-cid.128276/ Como adicionar isso na soucer, sei q e em luascript, mais em qual lugar,.... ajuda rep+
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.