[HELP] locked - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] locked (
/showthread.php?tid=517421)
[HELP] locked -
Luca12 - 04.06.2014
Hello how can I add here if is house locked then when player stand near house ppickup then it says that is house not locked then player can enter in house
pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(4.0,playerid,HouseInfo[h][henterX],HouseInfo[h][henterY],HouseInfo[h][henterZ]))
{
if(HouseInfo[h][hHaveOwner] == 1)
{
new message1[256];
format(message1,sizeof(message1),"{FFFFFF}For enter in {0ed400}House {FFFFFF}click on {0ed400}Enter {FFFFFF}or Exit to exit from dialog!");
ShowPlayerDialog(playerid,243,DIALOG_STYLE_MSGBOX,"{0ed400}House Enter",message1,"Enter","Exit");
}
}
}
Re: [HELP] locked -
Redirect Left - 04.06.2014
Do you actually have a var that is used to save if it is locked or not? If so, you simply need to do a check to see if it is locked or not, and then alter the dialog accordingly, or show a text message, whichever you're after.