06.06.2015, 07:41
PHP код:
public Time(playerid){
TextDrawDestroy(Textdraw1);
new Year,Month,Day,Hour,Minute,Second;
getdate(Day,Month,Year);
gettime(Hour,Minute,Second);
format(String,sizeof(String),"%i/%i/%i ; %i:%i:%i",Day,Month,Year,Hour,Minute,Second);
Textdraw1 = TextDrawCreate(523.000000, 436.000000, String);
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.290000, 1.100000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
TextDrawShowForPlayer(playerid, Textdraw1);
return 1;}
public GPU(playerid){
GPUpdate(playerid);
return 1;}
stock GPUpdate(playerid){
format(String,sizeof(String),"GP: %s",Comma(DOF2_GetInt(pFile(playerid),"GP")));
TextDrawDestroy(Textdraw0);
Textdraw0 = TextDrawCreate(1.000000, 429.000000, String);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.419999, 2.099999);
TextDrawColor(Textdraw0, 16777215);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;}