SA-MP Forums Archive
Need help with this!!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with this!!! (/showthread.php?tid=234265)



Need help with this!!! - Notorious29 - 03.03.2011

how to make these marker move so i can make my own


Re: Need help with this!!! - Stigg - 03.03.2011

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


Re: Need help with this!!! - JaTochNietDan - 03.03.2011

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

https://sampwiki.blast.hk/wiki/DisableInteriorEnterExits


- Notorious29 - 03.03.2011

thanks

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

also i dnt see that interior id in wiki


Re: Need help with this!!! - JaTochNietDan - 03.03.2011

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;
}



Re: Need help with this!!! - Notorious29 - 03.03.2011

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


Re: Need help with this!!! - JaTochNietDan - 03.03.2011

Read Stiggs post, he explained it.

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


Re: Need help with this!!! - Notorious29 - 03.03.2011

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


Re: Need help with this!!! - JaTochNietDan - 03.03.2011

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.


- Notorious29 - 03.03.2011

ok thanks

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

which is X,Y,Z and interid