28.10.2012, 21:04
Hmm, try using:
So:
Also avoid bumping the topic so early.
pawn Код:
SetDynamicObjectPos(objectid, Float:x, Float:y, Float:z);
pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 2,246.228,72.4962,1003.04))
{
if(lspd2 == 0)
{
SetDynamicObjectPos(lspddoor2, 246.228,72.4962,1000.63);
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
{
SetDynamicObjectPos(lspddoor2, 246.228,72.4962,1003.04);
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;
}
}