14.09.2012, 02:53
pawn Код:
public OnGameModeInit() {
CreatePickup(1559, 23, X, Y, Z, VirtualWorld);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/enter", true))
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z)) //This checks to see if the player is within the marker
{
SetPlayerInterior(playerid, interiorid);//
SetPlayerPos(playerid, X, Y, Z);//interior pos http://weedarr.wikidot.com/interior
}
return 1;
}
if(!strcmp(cmdtext, "/exit", true))
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z))
{
SetPlayerInterior(playerid, interiorid);
SetPlayerPos(playerid, X, Y, Z);
}
return 1;
}
return 0;
}

Need anymore help, feel free to ask.