Zcmd /exit problem - 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: Zcmd /exit problem (
/showthread.php?tid=275978)
Zcmd /exit problem -
Rabbayazza - 11.08.2011
Код:
COMMAND:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 290.7193,-1618.0544,33.1547))
{
SetPlayerPos(playerid, 246.2732,112.0255,1003.2188);
SetPlayerInterior(playerid, 10);
}
return 1;
}
COMMAND:exit(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2732, 112.0255, 1003.2188))
{
SetPlayerPos(playerid, 290.7193, -1618.0544, 33.1547);
SetPlayerInterior(playerid, 0);
}
return 1;
}
This is my code. /enter works great, but /exit doesn't work at all. /exit has no effect, doesn't even say Unknown Command.
Re: Zcmd /exit problem -
PhoenixB - 11.08.2011
pawn Код:
COMMAND:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 290.7193,-1618.0544,33.1547))
{
SetPlayerPos(playerid, 246.2732,112.0255,1003.2188);
SetPlayerInterior(playerid, 10);
}
return 1;
}
COMMAND:exit(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2732, 112.0255, 1003.2188))
{
SetPlayerPos(playerid, 290.7193, -1618.0544, 33.1547);
SetPlayerInterior(playerid, 0);
}
return 1;
}
Give a try on that might be the position of the code or if not where is the code placed? Is it as a FilterScript or a GameMode?
Re: Zcmd /exit problem -
Rabbayazza - 11.08.2011
It's placed in an interior (universe 10 i think), and the position is the same as where it SetPlayerPos for the /enter..
Re: Zcmd /exit problem -
Unte99 - 11.08.2011
pawn Код:
COMMAND:exit(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2732, 112.0255, 1003.2188))
{
if(GetPlayerInterior(playerid)==10)
{
SetPlayerPos(playerid, 290.7193, -1618.0544, 33.1547);
SetPlayerInterior(playerid, 0);
}
}
return 1;
}
Try this
Re: Zcmd /exit problem -
Rabbayazza - 12.08.2011
Didn't work.. this is actually stumping me.
Re: Zcmd /exit problem -
Rabbayazza - 12.08.2011
Tried moving it aswell, not working, help please!