Witajcie.
Nie ma wybiera?ki chocia? j? zrobi?em.
Nie mam pomys?u co to.
Kod:
[code]#include <a_samp>
#include <zcmd>
#include <core>
#include <float>
//Realny czas by Lolek(?ukasz Pikacz)
new Text:txtTimeDisp;
new hour, minute;
new timestr[32];
forward UpdateTimeAndWeather();
new fine_weather_ids[] = {1,2,3,4,5,6,7,12,13,14,15,17,18,24,25,26,27,28,29,30,40};
new foggy_weather_ids[] = {9,19,20,31,32};
new wet_weather_ids[] = {8};
#pragma tabsize 0
#define PocketMoney 21000
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
//realny czas by Lolek(?ukasz Pikacz)
stock UpdateWorldWeather()
{
new next_weather_prob = random(100);
if(next_weather_prob < 70) SetWeather(fine_weather_ids[random(sizeof(fine_weather_ids))]);
else if(next_weather_prob < 95) SetWeather(foggy_weather_ids[random(sizeof(foggy_weather_ids))]);
else SetWeather(wet_weather_ids[random(sizeof(wet_weather_ids))]);
}
main()
{
print("n----------------------------------");
print(" Uruchomiono Map? Truckn");
print(" Stworzana przez");
print(" Lolek(?ukasz_Pikacz)");
print("----------------------------------n");
}
public OnPlayerConnect(playerid)
{
gettime(hour, minute);
SetPlayerTime(playerid,hour,minute);
return 1;
}
public OnPlayerDi... |