• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[FS]sHouse. Simple housing system using MySQL

Newbie Spellweaver
Joined
Mar 5, 2010
Messages
16
Reaction score
3
sHouseVersion One​

Features


  • Loading and Saving via MySQL

  • Easy to use everything can be done InGame


Why should I use it ?


  • I don't know

  • I don't care

What do I need to use it?


  • SA-MP Server

  • Basic knowledge of how to use MySQL.

What commands are available?


  • Admin Commands
Code:
COMMAND:shouse(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
	{
	SendClientMessage(playerid, GREEN, "[HELP]: /createhouse [Price] [Interior (1-3)][Will create a house at your position].");
	SendClientMessage(playerid, GREEN, "[HELP]: /movehouse [HouseID] [Will move a house to your position].");
	SendClientMessage(playerid, GREEN, "[HELP]: /destroyhouse [HouseID] [Will move a house with the selected ID].");
	SendClientMessage(playerid, GREEN, "[HELP]: /househelp [Player Commands for houses].");
    }
    else
	{
        SendClientMessage(playerid, ORANGE, "[ERROR]: You ain't no RCON admin, you piece of poop motherlover.");
    }
    return 1;
}//

  • Player Commands
Code:
COMMAND:househelp(playerid, params[])
{
	SendClientMessage(playerid, GREEN, "[HELP]: /buyhouse [You can buy a house].");
	SendClientMessage(playerid, GREEN, "[HELP]: /sellhouse [You will sell your house].");
	SendClientMessage(playerid, GREEN, "[HELP]: /lock [You will lock/unlock your house].");
	SendClientMessage(playerid, GREEN, "[HELP]: /enter [Explains itself].");
	SendClientMessage(playerid, GREEN, "[HELP]: /exit [Explains itself].");
    return 1;
}

Are there any SS or videos?


Can I have a link, pl0x?


  • Pastebin
    Notesbin

  • Notesbin MySQL Dump

  • All-in-One

Change Log
Code:
/*
8/01/2011 [1.0.0] - Initial Release
9/01/2011 [1.0.1] - Fixed 3D Text Labels
                  - Fixed bugged when you destroy a house
		  - Added 3 more interiors
		  - Fixed a bug with Virtual worlds
*/

Credits


  • Scripting this poop - Me


  • MySQL Plugin - StrickenKid

  • Sscanf2 - Y_Less

  • Streamer - Incognito

  • zcmd - Zeex

  • Seif_Text - Seif
 
Last edited:
Back
Top