Jump to content
  • 0

Problema


ANDR

Question

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
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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