Jump to content
  • 0

MoveObject Inchidere automata


Question

Posted

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

8 answers to this question

Recommended Posts

  • 0
Posted
// la inceputul scriptului
new killergate;

// in OnGameModeInit:
killergate = CreateObject(...);

  • 0
Guest David Paul
Posted

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);

}

  • 0
Posted

deci am facut cum o zis david si ok se misca in fata incontinuie si nu se mai opreste .:)) ..

frati mei sa nu va mai chinui atat bagati id meu c.marius1

  • 0
Posted

Am editat, da frate am facut cum o zis david ala si cand scriu comanda de deschidere a porti poarta se duce in fata si nu se mai opreste

  • 0
Posted

in tutoriale folositoare este un tutorial deja !

si e si un tutorial nou...

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

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.