Some Problems
#2

Quote:

1) I want remove the text that appears when i go near a house or a business. It's "House: Type /enter to enter.". I searched in pawno this text but it doesn't exist!!

Search for 3DTextLabel, that is the function it will be created under.

Quote:

2) I want that i have to press the enter key to enter into a business or in a house! I tried with:
Код:
public OnPlayerKeyStateChange (playerid, newkeys)

if(newkeys == KEY_SECONDARY_ATTACK)
{
my enter script
}
but it says to me that "newkeys" is an undefined symbol.

Make sure that your function deceleration is correct, it should be public OnPlayerKeyStateChange(playerid, oldkeys, newkeys)

Also you should use if(newkeys & KEY_SECONDARY_ATTACK) not ==, see here for why.

Quote:

3) I want to change the faction names. I have to change their name on spawno? Just replacing all the times their name appears, faction name is changed?

Most likely, yes.

Quote:

4) I want to change the interior of a business. Where i can find the business string on spawno?

If you are using a static system then the position of the player is probably set after they enter with SetPlayerPos

Quote:

5) When i exit from the game, next time i log in, i spawn at the civilian spawnpoint. I want that the server record last position and the player spawn there.

You'll have to save the players position to a variable in their player file and load it when they login next time.

Quote:

6) I want that the button to start a vehicle is "2". But on my GM is setted to TAB.

The 2 key can not be detected as being pressed unless one of the default keys is bound to it. If there is a key bound to it then try changing your == to & (see above for explanation)

Quote:

7) I want insert the "i" of information in some places, for example in the LSPD for starting duty. What is the code?

CreatePickup

Based on what you've said, I highly recommend that you start with something more simple for scripting. You are not going to find people to make your script for you on these forums, so follow some tutorial on these forums and the wiki and read some scripts to get a better understanding of scripting.
Reply


Messages In This Thread
Some Problems - by MarcoWesley - 01.06.2012, 23:24
Re: Some Problems - by Scott - 01.06.2012, 23:32
Re: Some Problems - by MarcoWesley - 01.06.2012, 23:37

Forum Jump:


Users browsing this thread: 1 Guest(s)