28.10.2012, 19:47
Uhhh. Try this.
pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 2,246.228,72.4962,1003.04))
{
if(lspd2 == 0)
{
MoveDynamicObject(lspddoor2, 246.228,72.4962,1000.63, 4.5000, 0.0, 0.0, 90.0);
SendClientMessage(playerid, COLOR_BLUE,"SAPD door is open, please close it!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
lspd2 = 1;
}
else
{
MoveDynamicObject(lspddoor2, 246.228,72.4962,1003.04, 4.5000, 0.0, 0.0, 90.0);
SendClientMessage(playerid, COLOR_BLUE,"SAPD Control door is closed, thank you!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and Closes the door.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
lspd2 = 0;
}
}