04.12.2011, 20:15
(
Последний раз редактировалось Lуs; 14.01.2012 в 03:03.
)
Versгo Atual: 1.5
Linhas atuais: 1893
Changelog:
Olб pessoas, a algum tempo atras comecei a criar um sistema de casas pro meu GM, e fiz uma versгo em FS, como nгo custou nada eu fazer, decidi compartilhar com vocкs, tambйm como faz tempo que nгo posto nada.
O sistema й feito em DOF2, sscanf e zcmd.
Usei muita lуgica nele e espero que me retribuam com os crйditos.
Eu me baseei no sistema aHouse. Eu nгo copiei nada dele. Eu apenas olhei o cуdigo, vi como foi feito e decidi que posso fazer algo melhor.
Vamos retirar as dъvidas agora.
Como criar uma casa?
- Vб in-game e digite /criarcasa, selecione um interior e irб ser criado automaticamente.
Como criar uma casa manualmente?
- Coloque no OnFilterScriptInit:
Algumas screenshots:















Includes:
- Includes upadas no Attachment
Comandos:
- /criarcasa - Admin RCON
- /criarcarrocasa - Admin RCON
- /deletarcasa - Admin RCON
- /editarcasa - Admin RCON
- /astatuscasa - Admin RCON
- /avendercasa - Admin RCON
- /ircasa - Admin RCON
- /menucasa - Dono Casa
- /menucarro - Dono Casa com carro
Pastas a serem criadas:
SISTEMA FEITO EM 0.3D
Thanks, and Cya
Downloads:
Pastebin
SolidFiles - Completo
Linhas atuais: 1893
Changelog:
Quote:
Versгo 1.0 (First Release)
|
O sistema й feito em DOF2, sscanf e zcmd.
Usei muita lуgica nele e espero que me retribuam com os crйditos.
Eu me baseei no sistema aHouse. Eu nгo copiei nada dele. Eu apenas olhei o cуdigo, vi como foi feito e decidi que posso fazer algo melhor.
Vamos retirar as dъvidas agora.
Como criar uma casa?
- Vб in-game e digite /criarcasa, selecione um interior e irб ser criado automaticamente.
Como criar uma casa manualmente?
- Coloque no OnFilterScriptInit:
pawn Код:
CriarCasa(ID da casa, PortaX, PortaY, PortaZ, InteriorX, InteriorY, InteriorZ, Interior Face Angle, Preзo, ID do interior)















Includes:
- Includes upadas no Attachment
Comandos:
- /criarcasa - Admin RCON
- /criarcarrocasa - Admin RCON
- /deletarcasa - Admin RCON
- /editarcasa - Admin RCON
- /astatuscasa - Admin RCON
- /avendercasa - Admin RCON
- /ircasa - Admin RCON
- /menucasa - Dono Casa
- /menucarro - Dono Casa com carro
Pastas a serem criadas:
- LHouse
- LHouse/Casas
- LHouse/Donos
- LHouse/Logs
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new Casa = ObterCasa(playerid);
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, CasaI[Casa][CasaX], CasaI[Casa][CasaY], CasaI[Casa][CasaZ]))
{
SetPlayerPos(playerid, CasaI[Casa][IntX], CasaI[Casa][IntY], CasaI[Casa][IntZ]);
SetPlayerFacingAngle(playerid, CasaI[Casa][IntFA]);
SetPlayerVirtualWorld(playerid, Casa);
SetPlayerInterior(playerid, CasaI[Casa][Interior]);
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, CasaI[Casa][IntX], CasaI[Casa][IntY], CasaI[Casa][IntZ]))
{
if(GetPlayerVirtualWorld(playerid) == Casa)
{
SetPlayerPos(playerid, CasaI[Casa][CasaX], CasaI[Casa][CasaY], CasaI[Casa][CasaZ]);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
}
}
}
return 1;
}
Thanks, and Cya

Downloads:
Pastebin
SolidFiles - Completo