/enter /exit Command
#1

Hello Everyone!
I need to make command for all Houses,Banks,Bizz,etc that i can enter((/enter)) and exit ((/exit)).
Reply
#2

Use:

IsPlayerInRangeOfPoint
OnPlayerPickUpPickup
SetPlayerPos
SetPlayerInterior
Reply
#3

Can I Make One Command For All Default GM Things Of Samp?
Reply
#4

Nope. You must have multiple functions. (if Thats what You mean)
Reply
#5

pawn Код:
if(!strcmp(cmdtxt, "/enterishere", true))
{
           SetPlayerPos(playerid, X, Y,Z);
           return 1;
}
You Read to Make you commnd: https://sampforum.blast.hk/showthread.php?tid=150809


From Brazilian, thanks.
Reply
#6

I Put In Script This_ DisableInteriorEnterExits(); and try to make to open all with this commands

Quote:

//
if(strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
}
}
return 1;
}
//
if(strcmp(cmd, "/exit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
}
}
return 1;
}
//

But It Dosen't Work
Reply
#7

You Dont set His pos. & int. there So it Cant work

Finland, Coldheart
Reply
#8

Than I Need To Make 10000 Commands ?
Reply
#9

Just Some functions inside The commands.
Reply
#10

What?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)