Creating a textdraw is player is in range
#4

I'd use the Streamer plugin for that. https://sampforum.blast.hk/showthread.php?tid=102865

pawn Код:
new stadium_areaids[MAX_STADIUMS];

public OnGameModeInit()
{
    for(new i = 0; i < MAX_STADIUMS; ++i)
    {
        stadium_areaids[i] = CreateDynamicSphere(StadiumInfo[i][sEX], StadiumInfo[i][sEY], StadiumInfo[i][sEZ], 2.0);
    }

    return 1;
}
pawn Код:
public OnPlayerEnterDynamicArea(playerid, areaid)
{
    for(new i = 0; i < MAX_STADIUMS; ++i)
    {
        if(stadium_areaids[i] == areaid)
        {
            // Show textdraw

            return 1;
        }
    }

    return 1;
}
pawn Код:
public OnPlayerLeaveDynamicArea(playerid, areaid)
{
    for(new i = 0; i < MAX_STADIUMS; ++i)
    {
        if(stadium_areaids[i] == areaid)
        {
            // Hide textdraw

            return 1;
        }
    }

    return 1;
}
Reply


Messages In This Thread
Creating a textdraw is player is in range - by Ahrim - 15.09.2013, 09:31
Re: Creating a textdraw is player is in range - by NeroX98 - 15.09.2013, 10:57
Re: Creating a textdraw is player is in range - by Ahrim - 15.09.2013, 10:59
Re: Creating a textdraw is player is in range - by Finn - 15.09.2013, 11:05
Re: Creating a textdraw is player is in range - by NeroX98 - 15.09.2013, 11:13
Re: Creating a textdraw is player is in range - by Ahrim - 15.09.2013, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)