02.07.2011, 12:44
Quote:
Hello, I got a problem.
I got a code that is supposed to make an attached object on me: pawn Код:
|
PHP код:
CMD:enter(playerid, params[])
{
for(new id = 0; id < sizeof(locations); id++)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, locations[id][0], locations[id][1], locations[id][2]))
{
if(IsPlayerInRangeOfPoint(playerid, 50, -159.69033813477,-90.585571289063,1066.5211181641))
{
SetPlayerAttachedObject( playerid, 0, 1349, 17, -0.571150, 1.182301, -0.020726, 90.395317, 67.863235, 359.453979, 1.000000, 1.000000, 1.000000 ); // CJ_SHTROLLY - shopping
}
LoadingForPlayer(playerid,1500,COLOR_GREEN);
// teleport
SetPlayerPos(playerid, toPoint[id][0], toPoint[id][1], toPoint[id][2]);
SetPlayerInterior(playerid, toInterior[id]);
isInInterior[playerid] = id;
SendClientMessage(playerid, 0x00FF00AA, "Type /exit to exit the building");
}
else { SendClientMessage(playerid, 0xFF0000AA, "You need to be closer to a pickup to enter a building!"); }
}
return 1;
}