IsPlayerInArea
#1

I want to set this command so people go near a house door, and then i do SetPlayerPos to an interior. Can you help me?
Reply
#2

Where is the problem?
Reply
#3

can you analyze the coordinates?what one should be the x coorindate? and the z? the y?
Reply
#4

Can this also be with a pickup. So when they pick it up, they will be set into the house.

Want it like this?
Reply
#5

Quote:
Originally Posted by Jeffry
Can this also be with a pickup. So when they pick it up, they will be set into the house.

Want it like this?
yes please it would be better!
Reply
#6

Check your PM box.

I need the coords, give them to me, or show me. xD


I will make it for you then.
Reply
#7

You can also check this if you want to know how to get IsPlayerInArea coords on the easy way.
Reply
#8

ON top of your gamemode:
pawn Код:
new housein;
new houseout;
Put under "OnGameModeInt"

pawn Код:
housein = CreatePickup(1318, 1, -86.0824,-300.9615,2.7646, 10.8203);
houseout = CreatePickup(1318, 1, 2575.9456,-1303.7881,1044.1250);
Then at "OnPlayerPickupPickup"

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{{
    if(pickupid == housein)
        {SetPlayerPos(playerid, 2574.5510,-1302.3300,1044.1250); // change the coords to the ones of your house
         SetPlayerInterior(playerid, 2); // use /interior to see the interior number
         SetPlayerFacingAngle(playerid, 50);
         SendClientMessage(playerid, 0x00FF00FF, "Have fun in the house."); // Just fun, delete if you dont need.}

if(pickupid == houseout)
        {
        SetPlayerPos(playerid,-90.4862,-300.4058,2.7057); // infront of the factory again
        SetPlayerFacingAngle(playerid, 90); // Turning....
        SetPlayerInterior(playerid, 0); //0 = normal
        SendClientMessage(playerid, 0x00FF00FF, "Take care outside."); // Just fun, delete if you dont need.
        }

return 1;
    }
}

If any errors occur, just say.

Hope that helped you.

Reply
#9

Okay, i updated my post a bit upper.

Try it, hope you like it.
Gimme a comment please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)