Jump to content

Question

Posted (edited)

Am adugat sistem-ul de apartamente lui edison si nu merge sa dau enter 'f' sa deschida sa intri in el folosesc gm bigzone

cod sursa:

function enter_apartment( playerid ) {
	new Float: x, Float: y, Float: z;
	for( new i = 0; i < 24; i++ ) {
		GetDynamicObjectPos( apartament_door[ i ], x, y, z );
		if( PlayerToPoint( 2.0, playerid, x, y, z ) ) {
			if( !apartament_door_status[ i ] ) {
				if( i == 0 || i == 3 || i == 5 || i == 6 || i == 7 || i == 9 || i == 12 || i == 15 || i == 16 || i == 19 || i == 20 || i == 21 ) MoveDynamicObject( apartament_door[ i ], x, y, z, 10.0, 0.0, 0.0, -6.2800 );
				else MoveDynamicObject( apartament_door[ i ], x, y, z, 10.0, 0.0, 0.0, -188.4399 );
				apartament_door_status[ i ] = 1;
			} else {
				if( i == 0 || i == 3 || i == 5 || i == 6 || i == 7 || i == 9 || i == 12 || i == 15 || i == 16 || i == 19 || i == 20 || i == 21 ) MoveDynamicObject( apartament_door[ i ], x, y, z, 10.0, 0.0, 0.0, -100.000000 );
				else MoveDynamicObject( apartament_door[ i ], x, y, z, 10.0, 0.0, 0.0, 260.000000 );
				apartament_door_status[ i ] = 0;
			}
		}
	}
	return true; }

 

Edited by ANDR

5 answers to this question

Recommended Posts

  • 0
Posted

Iti spun ce am facut eu.

la OnPlayerKeyStateChange la if(newkeys & KEY_CTRL_BACK) daca o ai, daca nu o adaugi tu, faci astfel:
 

if(newkeys & KEY_CTRL_BACK)
{
	enter_apartment(playerid);
}

KEY_CTRL_BACK  e tasta H de pe testatura. https://wiki.sa-mp.com/wiki/Keys

Sper ca te-am ajutat!

  • Like 1
  • 0
Posted
Acum 3 minute, AlexxAdv a spus:

Am vrut sa te ajut, dar cand ai scris "bugzone" nu te mai ajut

DC ai mai adăugat com dacă nu ma ajuți 

  • 0
Posted
Just now, ANDR said:

DC ai mai adăugat com dacă nu ma ajuți 

de pl sa ma tragi la deal

  • 0
Posted
Acum 17 ore, BaFFyJunior a spus:

Iti spun ce am facut eu.

la OnPlayerKeyStateChange la if(newkeys & KEY_CTRL_BACK) daca o ai, daca nu o adaugi tu, faci astfel:
 


if(newkeys & KEY_CTRL_BACK)
{
	enter_apartment(playerid);
}

KEY_CTRL_BACK  e tasta H de pe testatura. https://wiki.sa-mp.com/wiki/Keys

Sper ca te-am ajutat!

uitate in privat

 

t/c am rezolvat

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

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.