Help with a Interior-Type 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: Help with a Interior-Type problem. (
/showthread.php?tid=83507)
Help with a Interior-Type problem. -
marszim - 25.06.2009
Right, so i can teleport to interiors.. a.k.a.. a stunt track arena, if you type /gethere "playerid" they will see the int.. but if they type /joinevent.. they won't.. and will just fall..
my /joinevent CMD:
Код:
if(strcmp(cmd, "/startevent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1 && (!EventStarted))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
EventStarted = 1;
GetPlayerPos(playerid,ex,ey,ez);
format(string, sizeof(string), "NOTICE: Administrator %s Has started an Event (/joinevent)", sendername);
OOCNews(TEAM_ORANGE_COLOR,string);
}
else if (PlayerInfo[playerid][pAdmin] >= 1 && (EventStarted))
{
EventStarted = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREEN, " you are not authorized to use that command!");
}
}
return 1;
}
if(strcmp(cmd, "/joinevent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(EventStarted == 0)
{
SendClientMessage(playerid, TEAM_ORANGE_COLOR, "An Event has not Started yet!");
return 1;
}
SetPlayerPos(playerid, ex, ey, ez); // Warp the player
SendClientMessage(playerid, COLOR_LIGHTRED, "Follow instructions by the Administrator who started the event.");
}//not connected
return 1;
}
Код:
Anyone help me, please? ;)
Re: Help with a Interior-Type problem. -
speedruntrainer - 04.08.2009
Try adding:
pawn Код:
SetPlayerInteror(playerid, interior ID);
Replace 'interior ID' with the interior ID what you want to use.
You can get the interior IDs by going ingame and type /interior.
Re: Help with a Interior-Type problem. -
MenaceX^ - 04.08.2009
pawn Код:
SetPlayerPos(playerid, ex, ey, ez); // Warp the player
Where do you warp him to?