Samp function
#3

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;

}
Reply


Messages In This Thread
Samp function - by osman2571 - 24.11.2014, 12:35
Re: Samp function - by Sawalha - 24.11.2014, 12:39
Re: Samp function - by Jonesy96 - 24.11.2014, 12:45
AW: Re: Samp function - by osman2571 - 24.11.2014, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)