/enter - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /enter (
/showthread.php?tid=543778)
/enter -
mkmk - 28.10.2014
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.
Re: /enter -
NathNathii - 28.10.2014
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys &= KEY_FIRE) // CTRL
{
if(IsPlayerInRangeOfPoint(playerid, distance, x, y, z))
{
}
}
return 1;
}
Re: /enter -
mkmk - 29.10.2014
Quote:
Originally Posted by NathNathii
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?
Re: /enter -
mkmk - 29.10.2014
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.
Re: /enter -
DavidBilla - 29.10.2014
Well we need to see your codes which set's the player's money
Re: /enter -
mkmk - 29.10.2014
Quote:
Originally Posted by DavidBilla
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).
Re: /enter -
mkmk - 29.10.2014
Bump
Re: /enter -
SKAzini - 29.10.2014
Show the /givemoney code then
Re: /enter -
mkmk - 29.10.2014
Quote:
Originally Posted by SKAzini
Show the /givemoney code then
|
I deleted it, but still get the same error.