Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- New:
- new Text:House1;
- new Text:House2;
- OnGameModeExitFunc:
- TextDrawDestroy(Text:House1);
- TextDrawDestroy(Text:House2);
- OnGameModeInit:
- /*------------------------------------------------------------------------------*/
- House1 = TextDrawCreate(2.000000, 133.000000, "Dobrodosli"); TextDrawBackgroundColor(House1, 255); TextDrawFont(House1, 1); TextDrawLetterSize(House1, 0.370000, 1.200000); TextDrawColor(House1, -1); TextDrawSetOutline(House1, 1); TextDrawSetProportional(House1, 1); TextDrawUseBox(House1, 1); TextDrawBoxColor(House1, 90); TextDrawTextSize(House1, 192.000000, 0.000000);
- /*------------------------------------------------------------------------------*/
- House2 = TextDrawCreate(2.000000, 113.000000, "Ukucajte /enter"); TextDrawBackgroundColor(House2, 255); TextDrawFont(House2, 3); TextDrawLetterSize(House2, 0.549999, 1.800000); TextDrawColor(House2, -1); TextDrawSetOutline(House2, 1); TextDrawSetProportional(House2, 1); TextDrawUseBox(House2, 1); TextDrawBoxColor(House2, -84215127); TextDrawTextSize(House2, 192.000000, 0.000000);
- /*------------------------------------------------------------------------------*/
- Pod Public Pickups:
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new string[128];
- //NameTimer();
- foreach (Player, i)
- {
- GetPlayerPos(i, oldposx, oldposy, oldposz);
- new tmpcar = GetPlayerVehicleID(i);
- if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
- {
- for(new h = 0; h < sizeof(SBizzInfo); h++)
- {
- if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
- {
- format(string, sizeof(string), "~w~%s~n~~r~Produkta Potrebno~w~: %d~n~~y~Cijena po Produktu: ~w~: $%d~n~~g~Novac: ~w~: $%d",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);
- TextDrawSetString(OwnerShip2,string);
- TextDrawShowForPlayer(i,OwnerShip1);
- TextDrawShowForPlayer(i,OwnerShip2);
- SetTimerEx("UnistiTDKuce",6000,0,"d",i);
- return 1;
- }
- }
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
- {
- if(HouseInfo[h][hOwned] == 1)
- {
- if(HouseInfo[h][hRentabil] == 0)
- {
- format(string, sizeof(string), "~g~Vlasnik~n~~w~%s~n~%d Level",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
- TextDrawSetString(House1, string);
- TextDrawShowForPlayer(i, House1);
- TextDrawShowForPlayer(i, House2);
- SetTimerEx("UnistiTDKuce",6000,0,"d",i);
- }
- else
- {
- format(string, sizeof(string), "~g~Vlasnik~n~~w~%s~n~Renta: $%d Level: %d~n~~y~/rentroom",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
- TextDrawSetString(House1, string);
- TextDrawShowForPlayer(i, House1);
- TextDrawShowForPlayer(i, House2);
- SetTimerEx("UnistiTDKuce",6000,0,"d",i);
- }
- return 1;
- }
- else
- {
- format(string, sizeof(string), "~g~Prodaje se!~n~~w~%s~n~$%d~n~%d Level~n~~y~/kupikucu",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
- TextDrawSetString(House1, string);
- TextDrawShowForPlayer(i, House1);
- TextDrawShowForPlayer(i, House2);
- SetTimerEx("UnistiTDKuce",6000,0,"d",i);
- }
- return 1;
- }
- }
- for(new h = 0; h < sizeof(BizzInfo); h++)
- {
- if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
- {
- format(string, sizeof(string), "~w~%s~n~~r~Potrebno produkata~w~: %d~n~~y~Cijena produkta: ~w~: $%d~n~~g~Novac: ~w~: $%d",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],BizzInfo[h][bTill]);
- TextDrawSetString(OwnerShip2,string);
- TextDrawShowForPlayer(i,OwnerShip1);
- TextDrawShowForPlayer(i,OwnerShip2);
- SetTimerEx("UnistiTDKuce",6000,0,"d",i);
- return 1;
- }
- }
- }
- PublicNa Kraj:
- forward UnistiTDKuce(playerid);
- public UnistiTDKuce(playerid)
- {
- TextDrawHideForPlayer(playerid,Text:House1);
- TextDrawHideForPlayer(playerid,Text:House2);
- }
Add Comment
Please, Sign In to add comment