Help with edit (rep+)
#1

PHP код:
stock BuyHouse(playeridhouseid)
{
  new 
string2[256];
  new 
name[24];
  
GetPlayerName(playeridnamesizeof(name));
  
#if defined PRINT_HOUSES
    
printf("%s Bought House ID %d"namehouseid);
  
#endif
  
GivePlayerMoney(playerid, -hInfo[houseid][Cost]);
  
format(string2,sizeof(string2), HOUSE_FILEhouseid);
  
INI_Open(string2);
  
INI_WriteString("Name"name);
  
INI_WriteInt("Locked"0);
  
INI_Save();
  
INI_Close();
  
hInfo[houseid][Name] = name;
  
hInfo[houseid][Locked] = 0;
  
DestroyPickup(HousePickup[houseid]);
  
HousePickup[houseid] = CreatePickup(127223hInfo[houseid][ExteriorX], hInfo[houseid][ExteriorY], hInfo[houseid][ExteriorZ]);
  
ShowBoughtHouseMessage(playerid);
  return 
1;

Can you do if a player has 1000 score for example then you can buy it
Reply


Messages In This Thread
Help with edit (rep+) - by boyan96 - 22.02.2012, 05:28
Re: Help with edit (rep+) - by emokidx - 22.02.2012, 05:31
Re: Help with edit (rep+) - by boyan96 - 22.02.2012, 05:52
Re: Help with edit (rep+) - by JamesC - 22.02.2012, 05:57
Re: Help with edit (rep+) - by emokidx - 22.02.2012, 05:59
Re: Help with edit (rep+) - by boyan96 - 22.02.2012, 06:17
Re: Help with edit (rep+) - by boyan96 - 22.02.2012, 06:54
Re: Help with edit (rep+) - by park4bmx - 22.02.2012, 06:56
Re: Help with edit (rep+) - by emokidx - 22.02.2012, 06:57

Forum Jump:


Users browsing this thread: 1 Guest(s)