Jump to content
  • 0

MoveObject Inchidere automata


Ripar

Question

Deci la Move Object sa se deschida automat

public OnGameModeExit()

{

        return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

       if (strcmp(cmdtext, "/killergateclose", true) == 0){

        MoveObject(killergate, 986, 1610.905151, -1882.201538, 14.249749);

        return 1;

        }

       if (strcmp(cmdtext, "/killergateopen", true) == 0){

        MoveObject(killergate, 986, 1610.905151, -1882.201538, 14.249749);

        return 1;

        }

return 0;

}

ce sterg si ce las si ce adaug ?

va rog mult asta e ultimu topic pe subectul asta. deci va rog

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
Guest David Paul

Wa femeie :

       if (strcmp(cmdtext, "/killergateopen", true) == 0){
        MoveObject(killergate, 986, 1610.905151, -1882.201538, 14.249749);
        SetTimer("killergateclose",3000, false);        
return 1;
}
        

Apoi la
Adaugi:

public killergateclose()
{
	MoveObject(killergate, 986, 1610.905151, -1882.201538, 14.249749);

}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By NewTon
      Salut, am si eu o intrebare, am nevoie sa respawnez masinile de pe server automat o data la 40 min (2400sec) dar inainte de asta sa se anunte cu 10 sec inainte rac,  si nustiu unde sa pun gen sa execute cu 10 sec inainte si gen dupa sa dea rac si sa pun  deja gettime()+2400. Daca stiti cum va rog frumos as aprecia foarte mult un help.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.