20.05.2012, 12:27
Presuming you still know how to script /enter and /exit, just add an object where you want the players to be able to /enter at.
If not, here's a 'starter kit'...
If not, here's a 'starter kit'...
pawn Код:
if(!strcmp("/enter", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z)) // LSPD HQ (Substitute X, Y & Z)
{
SetPlayerPos(playerid, X2, Y2, Z2); // Substitute X2, Y2 & Z2 for LSPD interior
SetPlayerInterior(playerid, I); // Substitute I for interior ID
GameTextForPlayer(playerid, "~b~Los Santos Police Department", 5000, 5);
}
return 1;
}
pawn Код:
if(!strcmp(cmdtext, "/exit", true))
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, X2, Y2, Z2)) // Do same as above
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, X, Y, Z);
}
return 1;
}