Problem ,i need some help +1rep - 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: Problem ,i need some help +1rep (
/showthread.php?tid=347249)
Problem ,i need some help +1rep -
jimis - 01.06.2012
Hi guys,i have make a command for exit from cityhall but when player exit from cityhall ,the map cant load.And the player see this:
http://imageshack.us/f/546/samp102xb.png/
Please guys i need some help.
Here is the command for exit from cityhall:
PHP код:
if (strcmp("/ExitCH", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 387.4368,173.7441,1008.3828))
{
SetPlayerPos(playerid, 2446.9475,2376.2249,12.1635);
}
else
SendClientMessage(playerid,COLOR_RED ,"[ERROR]You are not at door of cityhall");
}
Thanks for helping,
jimis
Re: Problem ,i need some help +1rep -
JaKe Elite - 01.06.2012
pawn Код:
if (strcmp("/ExitCH", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 387.4368,173.7441,1008.3828))
{
SetPlayerInteror(playerid, 0);
SetPlayerPos(playerid, 2446.9475,2376.2249,12.1635);
}
else
{
SendClientMessage(playerid,COLOR_RED ,"[ERROR]You are not at door of cityhall");
}
return 1;
}
Re: Problem ,i need some help +1rep -
pasha97 - 01.06.2012
Your script is missing setplayerinterior. Use:
pawn Код:
if (strcmp("/ExitCH", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 387.4368,173.7441,1008.3828))
{
SetPlayerPos(playerid, 2446.9475,2376.2249,12.1635);
SetPlayerInteror(playerid, 0);
}
else
{
SendClientMessage(playerid,COLOR_RED ,"[ERROR]You are not at door of cityhall");
}
return 1;
}
Re: Problem ,i need some help +1rep -
jimis - 01.06.2012
Ok, thanks huys