[Tutorial] [TUT]Creating Simple Buyable Houses!
#11

Quote:
Originally Posted by [03
Garsino ]
Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by [03
Garsino ]
Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by [03
Garsino ]
Nice

But would be better with checkpoints :P
In my gamemode that I am making, It has the checkpoint version. I will make one later but it would be useless to most people because they would already have a checkpoint streamer that would screw it up .
Trying to make one myself but fail :P
KK, I'll make one, also, do you have a checkpoint streamer already or do you want me to make a inbuilt one.
I'm currently using http://forum.sa-mp.com/index.php?topic=127905.0

^That one. ([REL]Streamer Plugin v2.3.3)

dunno if yours is better tho :P
All you need to change here is

pawn Code:
PickupID[ID] = CreatePickup(1273, 23, Pickupx, Pickupy, Pickupz, -1); //Creates the pickup :).
To
pawn Code:
PickupID[ID] = CreateDynamicCP(Pickupx, Pickupy, Pickupz, 3, 0, 0, -1, 25);
And set a timer that does this

pawn Code:
SetTimer("Timer", 100, true);
public Timer()
{
  for(new i; i<MAX_PLAYERS; i++)
  {
    for(new A; A<1000; A++) //Change 1000 to your amount of CP'S
    {
      if(IsPlayerInDynamicCP(i, A)) OnPlayerEnterStreamedCP(i, A)
    }
  }
  return 1;
}

stock OnPlayerEnterStreamedCP(playerid, CPID)
{
  for(new J; J<MAX_HOUSES; J++) //Loops through all houses
  {
    if(CPID == PickupID[J])
    {
      new str[75];
      if(HouseInfo[J][Owned] == 1)
      {
        format(str, sizeof(str), "~r~House Info~n~~g~Owner: ~w~%s", HouseInfo[J][HouseOwner]);
      }
      if(HouseInfo[J][Owned] == 0)
      {
        format(str, sizeof(str), "~r~House Info~n~~g~Owner: ~w~Nobody");
        SendClientMessage(playerid, 0x67F6F6AA, "This house is up for sale! Type /buy to buy it");
      }
      new str2[75];
      format(str2, sizeof(str2), "~g~Cost price:~w~%d ~w~%d~n~~g~Sell Price:~w~ %d", HouseInfo[J][HouseCost], HouseInfo[J][HouseSell]);
      new str3[150];
      format(str3, sizeof(str3), "%s~n~%s", str, str2);
      GameTextForPlayer(playerid, str3, 3500, 3);
    }
  }
}
Reply


Messages In This Thread
[TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 03.01.2010, 07:46
Re: [TUT]Creating Simple Buyable Houses! - by SAW-RL - 03.01.2010, 07:48
Re: [TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 03.01.2010, 10:25
Re: [TUT]Creating Simple Buyable Houses! - by Niixie - 03.01.2010, 10:28
Re: [TUT]Creating Simple Buyable Houses! - by [03]Garsino - 03.01.2010, 10:41
Re: [TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 03.01.2010, 10:45
Re: [TUT]Creating Simple Buyable Houses! - by [03]Garsino - 03.01.2010, 10:47
Re: [TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 03.01.2010, 10:48
Re: [TUT]Creating Simple Buyable Houses! - by [03]Garsino - 03.01.2010, 10:49
Re: [TUT]Creating Simple Buyable Houses! - by ClanDBZVegeta - 03.01.2010, 11:04
Re: [TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 03.01.2010, 11:12
Re: [TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 03.01.2010, 11:18
Re: [TUT]Creating Simple Buyable Houses! - by [03]Garsino - 03.01.2010, 12:29
Re: [TUT]Creating Simple Buyable Houses! - by [03]Garsino - 03.01.2010, 12:43
Re: [TUT]Creating Simple Buyable Houses! - by x-cutter - 03.01.2010, 13:51
Re: [TUT]Creating Simple Buyable Houses! - by Deat_Itself - 03.01.2010, 14:19
Re: [TUT]Creating Simple Buyable Houses! - by [03]Garsino - 03.01.2010, 14:38
Re: [TUT]Creating Simple Buyable Houses! - by HydraX - 03.01.2010, 14:45
Re: [TUT]Creating Simple Buyable Houses! - by HydraX - 03.01.2010, 14:49
Re: [TUT]Creating Simple Buyable Houses! - by kmzr - 03.01.2010, 16:58
Re: [TUT]Creating Simple Buyable Houses! - by kmzr - 03.01.2010, 19:21
Re: [TUT]Creating Simple Buyable Houses! - by [03]Garsino - 03.01.2010, 19:23
Re: [TUT]Creating Simple Buyable Houses! - by Ehab1911 - 03.01.2010, 19:28
Re: [TUT]Creating Simple Buyable Houses! - by kmzr - 03.01.2010, 19:51
Re: [TUT]Creating Simple Buyable Houses! - by [03]Garsino - 03.01.2010, 19:53
Re: [TUT]Creating Simple Buyable Houses! - by HydraX - 03.01.2010, 20:44
Re: [TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 03.01.2010, 22:34
Re: [TUT]Creating Simple Buyable Houses! - by HydraX - 04.01.2010, 01:34
Re: [TUT]Creating Simple Buyable Houses! - by ToPhrESH - 17.07.2010, 11:37
Re: [TUT]Creating Simple Buyable Houses! - by Stefan_Toretto - 17.07.2010, 13:35
Re: [TUT]Creating Simple Buyable Houses! - by Smokey619 - 17.07.2010, 23:05
Re: [TUT]Creating Simple Buyable Houses! - by Scenario - 17.07.2010, 23:37
Re: [TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 18.07.2010, 00:03
Re: [TUT]Creating Simple Buyable Houses! - by Scenario - 18.07.2010, 00:06
Re: [TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 18.07.2010, 19:37
Re: [TUT]Creating Simple Buyable Houses! - by Unte99 - 18.07.2010, 23:03
Re: [TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 19.07.2010, 06:26
Re: [TUT]Creating Simple Buyable Houses! - by Scenario - 19.07.2010, 06:29
Re: [TUT]Creating Simple Buyable Houses! - by multinfs - 13.11.2010, 13:05
Re: [TUT]Creating Simple Buyable Houses! - by iTorran - 28.11.2010, 11:39
Re: [TUT]Creating Simple Buyable Houses! - by Shadow_ - 03.12.2010, 19:39
Re: [TUT]Creating Simple Buyable Houses! - by Mean - 03.12.2010, 21:03
Re: [TUT]Creating Simple Buyable Houses! - by scripter1 - 21.12.2010, 01:41
Re: [TUT]Creating Simple Buyable Houses! - by Tomejus - 02.01.2011, 00:47
Re: [TUT]Creating Simple Buyable Houses! - by -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 03.01.2011, 13:22
Re: [TUT]Creating Simple Buyable Houses! - by -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 06.01.2011, 21:21
Re: [TUT]Creating Simple Buyable Houses! - by bami - 27.01.2011, 11:57
Re: [TUT]Creating Simple Buyable Houses! - by MoDee - 12.02.2011, 12:16
Re: [TUT]Creating Simple Buyable Houses! - by Kyro - 15.02.2011, 20:47
Re: [TUT]Creating Simple Buyable Houses! - by [03]Garsino - 09.03.2011, 11:45
Re: [TUT]Creating Simple Buyable Houses! - by Karl[NDZ] - 25.04.2012, 14:39
Re: [TUT]Creating Simple Buyable Houses! - by SwiftKidZ - 02.05.2012, 05:47
Re: [TUT]Creating Simple Buyable Houses! - by Stm - 22.05.2012, 23:50
Re: [TUT]Creating Simple Buyable Houses! - by [HiC]TheKiller - 23.05.2012, 05:39
Re: [TUT]Creating Simple Buyable Houses! - by Wickeed - 15.06.2012, 18:07
Re: [TUT]Creating Simple Buyable Houses! - by tixzor - 16.06.2012, 19:13
Re: [TUT]Creating Simple Buyable Houses! - by Ukko - 18.06.2012, 12:23
Re: [TUT]Creating Simple Buyable Houses! - by Vendicatori - 18.07.2012, 01:19
Re: [TUT]Creating Simple Buyable Houses! - by Unirom Shaw - 18.07.2012, 02:22
Re: [TUT]Creating Simple Buyable Houses! - by Songason - 19.07.2012, 13:14
Re: [TUT]Creating Simple Buyable Houses! - by SwisherSweet - 02.10.2012, 03:25
Re: [TUT]Creating Simple Buyable Houses! - by Lordzy - 02.10.2012, 04:56
Re: [TUT]Creating Simple Buyable Houses! - by Ghost_Boii - 02.10.2012, 06:44
Re: [TUT]Creating Simple Buyable Houses! - by Hade. - 30.10.2012, 11:25
Re: [TUT]Creating Simple Buyable Houses! - by RieTzz - 18.02.2013, 09:05
Respuesta: [TUT]Creating Simple Buyable Houses! - by Cerealguy - 28.10.2013, 01:13
Respuesta: [TUT]Creating Simple Buyable Houses! - by DanDRT - 28.10.2013, 11:08
Re: [TUT]Creating Simple Buyable Houses! - by Jardell - 28.10.2013, 11:24
Re: [TUT]Creating Simple Buyable Houses! - by Nostalgia - 28.10.2013, 11:26
Re: [TUT]Creating Simple Buyable Houses! - by proSeryoga - 28.10.2013, 12:16
Re: [TUT]Creating Simple Buyable Houses! - by ZBits - 01.01.2014, 12:08
Re: [TUT]Creating Simple Buyable Houses! - by NikO1 - 01.01.2014, 12:14
Re: [TUT]Creating Simple Buyable Houses! - by Youssef214 - 12.02.2014, 12:38
Re: [TUT]Creating Simple Buyable Houses! - by Slavica - 11.02.2017, 13:13
Re: [TUT]Creating Simple Buyable Houses! - by DiamondGaming - 25.12.2017, 16:18

Forum Jump:


Users browsing this thread: 14 Guest(s)