/enter
#1

Welp. Sorry, this is my third scripting help request.

Is there anyone who can link me (to a tut) or help me to make a /enter command (or a key that will enter buildings, for example, when you press "F" you enter.)

I don't really fancy using SetPlayerPos for every entrance lol.
Reply
#2

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys &= KEY_FIRE) // CTRL
    {
        if(IsPlayerInRangeOfPoint(playerid, distance, x, y, z))
        {

        }
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by NathNathii
View Post
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys &= KEY_FIRE) // CTRL
    {
        if(IsPlayerInRangeOfPoint(playerid, distance, x, y, z))
        {

        }
    }
    return 1;
}
Let me get this right, do I have to make that for every coordinate that I want to enter? Also, how would I make the action/enter key to be F?
Reply
#4

I've fixed this, but I've found a bug that I have no idea how to fix.

Well, money saving system is fine (from what I know), but a player cannot exceed a certain amount of money. For example, with my friend, he cannot have more than 10k on him, but I cannot have more than 20k on me. Help please, +rep.
Reply
#5

Well we need to see your codes which set's the player's money
Reply
#6

Quote:
Originally Posted by DavidBilla
View Post
Well we need to see your codes which set's the player's money
I don't have one, lol. I only have a /givemoney command (for admins).
Reply
#7

Bump
Reply
#8

Show the /givemoney code then
Reply
#9

Quote:
Originally Posted by SKAzini
View Post
Show the /givemoney code then
I deleted it, but still get the same error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)