09.03.2013, 01:13
Like this right?
(this another command just to show if its like this you mean) I did this before but it just said that i had opened it but it didnt open
pawn Код:
if(!strcmp(cmdtext, "/opendoor", true)) // By CuervO_NegrO
{
if(IsACop(playerid) || PlayerInfo[playerid][pAdmin] >= 6 || IsAFreecop(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 4,251.2575,67.6536,1003.6406))
{
if(lspdw == 0)
{
MoveDynamicObject(lspdwindows, 250.524,67.650,1001.08, 3.0000);
SendClientMessage(playerid, COLOR_BLUE,"SAPD Windows is Open, Please Close it!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and opens the Windows.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
lspdw = 1;
}
else
{
MoveDynamicObject(lspdwindows, 250.524,67.650,1002.58, 3.0000);
SendClientMessage(playerid, COLOR_BLUE,"SAPD Windows is Closed, Thank You!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and closes the Windows.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
lspdw = 0;
}
}
}