/enter /exit Command - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /enter /exit Command (
/showthread.php?tid=232858)
/enter /exit Command -
Gangasta300 - 28.02.2011
Hello Everyone!
I need to make command for all Houses,Banks,Bizz,etc that i can enter((/enter)) and exit ((/exit)).
Re: /enter /exit Command - Max_Coldheart - 28.02.2011
Use:
IsPlayerInRangeOfPoint
OnPlayerPickUpPickup
SetPlayerPos
SetPlayerInterior
Re: /enter /exit Command -
Gangasta300 - 28.02.2011
Can I Make One Command For All Default GM Things Of Samp?
Re: /enter /exit Command - Max_Coldheart - 28.02.2011
Nope. You must have multiple functions. (if Thats what You mean)
Respuesta: /enter /exit Command -
zSuYaNw - 28.02.2011
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.
Re: /enter /exit Command -
Gangasta300 - 28.02.2011
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
Re: /enter /exit Command - Max_Coldheart - 28.02.2011
You Dont set His pos. & int. there So it Cant work
Finland, Coldheart
Re: /enter /exit Command -
Gangasta300 - 28.02.2011
Than I Need To Make 10000 Commands
?
Re: /enter /exit Command - Max_Coldheart - 28.02.2011
Just Some functions inside The commands.
Re: /enter /exit Command -
Gangasta300 - 28.02.2011
What?