17.03.2011, 19:09
I have set up my admin house and some objects around it. There is the script:
These are my objects. Now, I set up a /enter cmd:
When I go near the house and I type /enter I don't get inside the house :@ WTF?
some pics:
lol...
pawn Код:
CreateObject(3483, -2338.1276855469, -1622.5887451172, 489.96249389648, 0.999755859375, 0, 0); // the house
CreateObject(971, -2339.6259765625, -1639.7559814453, 486.27304077148, 0, 0, 0); // gate1
CreateObject(971, -2330.6284179688, -1639.7492675781, 486.27304077148, 0, 0, 0); // gate2
CreateObject(14510, -2340.3935546875, -1620.63671875, 486.93395996094, 0, 0, 0); // random interiror
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/enter", true) == 0)
{
if(PlayerInfo[playerid][AdminLevel] < 3)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, -2324.1108,-1625.5382,483.7064))
{
SetPlayerPos(playerid, -2340.3935546875, -1620.63671875, 486.93395996094);
SetPlayerVirtualWorld(playerid, 999);
}
}
return 1;
}
some pics:
lol...