24.11.2014, 12:45
Or you can use a MySQL database
Код:
forward deathcoount(playerid); public deathcount(playerid){ new query[900]; new rows, fields; new deaths; format(query, sizeof(query), "SELECT * FROM `player_table` WHERE `playerid`=%d LIMIT 1;", playerid); mysql_query(connection, query); cache_get_data(rows,fields); if(rows){ deaths = cache_get_field_content_int(0, "deaths"); if(deaths == 100){ //action here } } return 1; }