public LoadData(id) { new AuthID[35] get_user_authid(id,AuthID,34)
new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s-cso",AuthID) format(vaultdata,255,"%i#%i#",g_iLevel2[id],g_iExp2[id]) nvault_get(g_vault,vaultkey,vaultdata,255)
public native_get_user_exp(id) { return g_iExp2[id]; }
public native_set_user_exp(id, amount) { g_iExp2 [id]= amount; }
public native_get_user_level(id) { return g_iLevel2[id]; }
public native_set_user_level(id, amount) { g_iLevel2 [id]= amount; }
stock color_print( const id , const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4" ) // Green Color replace_all(msg, 190, "!y", "^1" ) // Default Color replace_all(msg, 190, "!team", "^3" ) // Team Color
if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players)) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText" ), _, players) write_byte(players); write_string(msg); message_end(); } } } }
Сообщение отредактировал Almaz - Воскресенье, 09.06.2013, 20:16