A small question....
#5

Quote:
Originally Posted by justsomeguy
Посмотреть сообщение
Hello, I got a problem.
I got a code that is supposed to make an attached object on me:
pawn Код:
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");
            return 1;
        }
    }
    SendClientMessage(playerid, 0xFF0000AA, "You need to be closer to a pickup to enter a building!");
    return 1;
}
Try:

PHP код:
CMD:enter(playeridparams[])
{
    for(new 
id 0id sizeof(locations); id++)
    {
        if(
IsPlayerInRangeOfPoint(playerid2.0locations[id][0], locations[id][1], locations[id][2]))
        {
            if(
IsPlayerInRangeOfPoint(playerid50, -159.69033813477,-90.585571289063,1066.5211181641))
            {
                
SetPlayerAttachedObjectplayerid0134917, -0.5711501.182301, -0.02072690.39531767.863235359.4539791.0000001.0000001.000000 ); // CJ_SHTROLLY - shopping
            
}
            
LoadingForPlayer(playerid,1500,COLOR_GREEN);
            
// teleport
            
SetPlayerPos(playeridtoPoint[id][0], toPoint[id][1], toPoint[id][2]);
            
SetPlayerInterior(playeridtoInterior[id]);
            
isInInterior[playerid] = id;
            
SendClientMessage(playerid0x00FF00AA"Type /exit to exit the building");
        }
        else { 
SendClientMessage(playerid0xFF0000AA"You need to be closer to a pickup to enter a building!"); }
    }
    return 
1;

Reply


Messages In This Thread
A small question.... - by justsomeguy - 30.06.2011, 14:55
Re: A small question.... - by justsomeguy - 01.07.2011, 22:51
Re: A small question.... - by Shadoww5 - 02.07.2011, 01:35
Re: A small question.... - by justsomeguy - 02.07.2011, 12:02
Re: A small question.... - by Shadoww5 - 02.07.2011, 12:44
Re: A small question.... - by justsomeguy - 02.07.2011, 15:36
Re: A small question.... - by =WoR=Varth - 03.07.2011, 02:49
Re: A small question.... - by Scenario - 03.07.2011, 04:07
Re: A small question.... - by willsuckformoney - 03.07.2011, 05:41
Re: A small question.... - by Mrminecraft202 - 03.07.2011, 06:03

Forum Jump:


Users browsing this thread: 1 Guest(s)