HELP: /enter help - 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: HELP: /enter help (
/showthread.php?tid=186434)
[SOLVED] /enter help -
BigAl - 29.10.2010
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enter", cmdtext, true, 5) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 3473.1086, -1455.0482, 14.5610))
SetPlayerPos(playerid, 1267.663208, -781.323242, 1091.906250);
SetPlayerInterior(playerid, 5);
return 1;
}
if (strcmp("/leave", cmdtext, true, 5) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1267.663208, -781.323242, 1091.906250))
SetPlayerPos(playerid, 3473.1086, -1455.0482, 14.5610);
SetPlayerInterior(playerid, 0);
return 1;
}
return 0;
}
Thats the script but when i do /leave i spawn about 500feet in the air above madd dogs mansion in ls, does anyone know how to fix this please?
Re: HELP: /enter help -
BigAl - 29.10.2010
Bump! I really need help!
Please...
Re: HELP: /enter help -
Kitten - 29.10.2010
your co-rds are wrong for the X,Y,Z i had this problem i just redid the co-rds it should help
Re: HELP: /enter help -
BigAl - 29.10.2010
thx for ur help!