Jump to content
  • 0

Un pic de ajutor


teudan

Question

Problema mea consta in un bug la deschiderea/inchiderea usilor de cand am instalat versiunea 0.3d. Daca cineva stie cum sa rezolv bugul sa posteze aici. Multumesc

http://postimage.org/image/pshj144fd/ - usa cand intru in PD

http://postimage.org/image/ncfpn9mcp/ - cum arata usa dupa ce o deschid

http://postimage.org/image/llwols4tl/ - cum arata usa dupa ce o inchid

Bugul este la toate usile( http://s11.postimage.org/unu21qd7n/sa_mp_006.png)

Scriptul pentru prima usa


new lspddoor2;
new lspd2;
public OnGameModeInit()
{
      lspd2 = 0;
      lspddoor2 = CreateDynamicObject(5422, 246.228,72.4962,1003.04,0.00,0.00,90.00);
      return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ( PRESSED(KEY_LOOK_BEHIND) )
{
if(IsAPDMember(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
{
  if(IsPlayerInRangeOfPoint(playerid, 2,246.228,72.4962,1003.04))
{
if(lspd2 == 0)
    {
      MoveDynamicObject(lspddoor2, 246.228,72.4962,1000.63, 4.5);
      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.18, 4.5);
      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;
}
}
}
}
    return 1;

}             

Tin sa precizez ca inainte de 0.3d se deschidea bine usa.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.