Jump to content

pomoc [Help]Brany


Ronnie

Recommended Posts

použiješ:

new brana; // mimo publici

 

// tam kde máš create object (.... ); // brana.. dáš

brana=createobject(..);

 

potom gamemode init

SetTimer("Brana",1000.1); // 1000-> milisekundy, 1-> true-> opakovanie

 

potom forward Brana();

public Brana()

{

for(new i; i<GetMaxPlayers(); i++)

{

if(IsPlayerConnected(i))

{

if(IsPlayerInRangeofPoint(i,15,XBrany,YBrany,ZBrany))

{

MoveObject(brana, x kam chces,y kam ches,zkam chces,rot x, roty,rotz...); // pohne branu

}

}

}

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...