Need help with this!!!
#1

how to make these marker move so i can make my own
Reply
#2

You need the object id for the yellow corona: 1559
Use it as a pickup. Hope this helps.
Reply
#3

See usage of this function on the SA-MP Wiki:

https://sampwiki.blast.hk/wiki/DisableInteriorEnterExits
Reply
#4

thanks

so am i supposed to DisableInteriorEnterExits(playerid, interid);

also i dnt see that interior id in wiki
Reply
#5

No, using that will disable all interior entrances/exits. You need to use it like it shows in the SA-MP Wiki example:

pawn Код:
public OnGameModeInit()
{
    DisableInteriorEnterExits();
    return 1;
}
Reply
#6

so what about my new interior i waant to add like a white arrow
Reply
#7

Read Stiggs post, he explained it.

Make use of CreatePickup and OnPlayerPickUpPickup, both of which can be found on the great SA-MP Wiki
Reply
#8

i know man i got everything finsh thanks for the help i just have to make my interior in thing now

on more thing look i dnt know how ot had more cmd proper

take a look

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {

        if(IsPlayerInRangeOfPoint(playerid, 3, 1553.3136,-1675.7379,16.1953))
        {
            SetPlayerPos(playerid, 246.40,110.84,1003.22);
            SetPlayerInterior(playerid, 111);
    }
        return 1;
    if (strcmp("/exit", cmdtext, true, 10) == 0)
    {

        if(IsPlayerInRangeOfPoint(playerid, 3, 1553.3136,-1675.7379,16.1953))
        {
            SetPlayerPos(playerid, 246.40,110.84,1003.22);
            SetPlayerInterior(playerid, 111);
    }

    }
    return 0;
}
what i did wrong
Reply
#9

Your brackets are out of place, look at the fixed syntax:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3, 1553.3136,-1675.7379,16.1953))
        {
            SetPlayerPos(playerid, 246.40,110.84,1003.22);
            SetPlayerInterior(playerid, 111);
        }
        return 1;
    }

    if (strcmp("/exit", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3, 1553.3136,-1675.7379,16.1953))
        {
            SetPlayerPos(playerid, 246.40,110.84,1003.22);
            SetPlayerInterior(playerid, 111);
        }
        return 1;
    }
    return 0;
}
It's also much easier to understand/read when it's indented properly. Additionally are you sure that's the right interior ID? I don't think I've heard of an interior with the ID of 111.
Reply
#10

ok thanks

last thing
1247, 1553.779052, -1675.300048, 16.195312, 266.300720, 111, 4 ; // LSPD (Kye)

which is X,Y,Z and interid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)