Jump to content
  • 0

deschidere poarta cu click


Cruncy

Question

6 answers to this question

Recommended Posts

La OnPlayerKeyStateChange:

if( (newkeys & KEY_FIRE) && ( IsPlayerInRangeOfPoint(playerid, 10, xpoarta,ypoarta,zpoarta) ) )
{
    MoveObject(poarta, xnou,ynou,znou, speed);
    SetTimer("InchiderePoarta",10000,0);
}

xpoarta,ypoarta,zpoarta inlocuiesti cu coordonatele portii nedeschise

xnou,ynou,znou inlocuiesti cu coordonatele portii deschise

speed inlocuiesti cu ce viteza vrei sa se deschida poarta, mai bine pui 5-10 :D

InchiderePoarta inlocuiesti cu functia care inchide poarta la loc

Link to comment
Share on other sites

care e functia care inchide poarta?

Foloseste un Timer care sa-ti inchida poarta (vezi aici, sau daca vrei sa o inchizi tot prin click, faci la fel, numai ca schimbi coordonatele intre ele.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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.