ken1997
|
分享:
▲
▼
public client_putinserver(id) { LoadLevel(id) }
public client_disconnect(id) { SaveLevel(id) }
public SaveLevel(id) { new data[1000], name[33] get_user_name(id, name, 32) format(data, 999, "%d %d %d", PlayerLevel[id], PlayerXp[id], PlayerSp[id]) fvault_set_data("Level_System", name, data); }
public LoadLevel(id) { new data[1000], name[33], level[32], xp[32], sp[32] get_user_name(id, name, 32) format(data, 999, "%d %d %d", PlayerLevel[id], PlayerXp[id], PlayerSp[id]) fvault_get_data("Level_System", name, data, sizeof(data) - 1); parse(data, level, 31, xp, 31, sp, 31); PlayerLevel[id] = str_to_num(level); PlayerXp[id] = str_to_num(xp); PlayerSp[id] = str_to_num(sp); }
不明在問...
|