Keypad Door Problem With Message
#1

Quote:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_SECONDARY_ATTACK)
{
if(gTeam[playerid] == Police)
if(IsPlayerInRangeOfPoint(playerid, 1.0,2481.3732, -1671.9863, 13.8873))
{
if (isopen1 == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What Would You Like To Do", "Open\nClose\nInfo", "Select", "Close");
MoveObject(test,2494.1902, -1670.2520, 11.6533,0.90);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
GameTextForPlayer(playerid, "~b~Cell 1 ~g~Opening",1500,4);
isopen1 = 1;
return 1;
}
else if(gTeam[playerid] == Mafia)
{
SendClientMessage(playerid,COLOR_BLUE,"Sorry Your Not On The Police Team ");
}
if (isopen1 == 1)
{
MoveObject(test, 2485.69, -1670.25, 11.65,0.90);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
GameTextForPlayer(playerid, "~b~Cell 1 ~r~ Closing",1500,4);
isopen1 = 0;
return 1;
}
}
}
return 1;
}

But its not returning the message
Reply
#2

Why is there
Quote:

ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What Would You Like To Do", "Open\nClose\nInfo", "Select", "Close");

Try to remove it and see
Reply
#3

Quote:
Originally Posted by jaami
Посмотреть сообщение
Why is there

Try to remove it and see
Nothing ??
Can Anyone Help
Reply
#4

EDIT: Remove the ShowPlayerDialog if you like, depending on whether you want it there or not.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_SECONDARY_ATTACK)
{
if(gTeam[playerid] == Police)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0,2481.3732, -1671.9863, 13.8873))
{
if (isopen1 == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What Would You Like To Do", "Open\nClose\nInfo", "Select", "Close");
MoveObject(test,2494.1902, -1670.2520, 11.6533,0.90);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
GameTextForPlayer(playerid, "~b~Cell 1 ~g~Opening",1500,4);
isopen1 = 1;
return 1;
}
else if (isopen1 == 1)
{
MoveObject(test, 2485.69, -1670.25, 11.65,0.90);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
GameTextForPlayer(playerid, "~b~Cell 1 ~r~ Closing",1500,4);
isopen1 = 0;
return 1;
} } }
else if(gTeam[playerid] == Mafia) return
SendClientMessage(playerid,COLOR_BLUE,"Sorry You're Not On The Police Team ");
}
return 1;
}
Reply
#5

Sorry, I just fixed my last post. Didn't read through it properly.
Reply
#6

sry wrong place didnt mean to
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)