only certain map icons are showing.
#1

hey guys i have a few questions AGAIN. dont worry these should be the last ones XD.
SO, i have two questions.
1 : i have mapicons for properties on my server only certain ones show.
2 : how do i make nitro infinite? (<---bad spelling? idk. oh well)

my map icons.
Код:
        SetPlayerMapIcon(playerid, 31, 1794.94, -1287.32, 13.59, 31, 0, MAPICON_LOCAL); //1
	SetPlayerMapIcon(playerid, 5, -1545.62, -430.32, 5.99, 5, 0, MAPICON_LOCAL); //2
        SetPlayerMapIcon(playerid, 10, -2319.55, -182.01, 35.30, 10, 0, MAPICON_LOCAL); //3
        SetPlayerMapIcon(playerid, 31, -2246.09, -87.86, 35.32, 31, 0, MAPICON_LOCAL); //4
        SetPlayerMapIcon(playerid, 31, -1980.46, 137.66, 27.68, 31, 0, MAPICON_LOCAL); //5
        SetPlayerMapIcon(playerid, 55, -1928.97, 268.96, 41.04, 55, 0, MAPICON_LOCAL); //6
        SetPlayerMapIcon(playerid, 31, -1952.25, 717.31, 46.56, 31, 0, MAPICON_LOCAL); //7
        SetPlayerMapIcon(playerid, 31, -2417.31, 969.29, 45.29, 31, 0, MAPICON_LOCAL); //8
        SetPlayerMapIcon(playerid, 10, -2357.11, 994.86, 50.89, 10, 0, MAPICON_LOCAL); //9
        SetPlayerMapIcon(playerid, 31, -1940.01, 2380.26, 49.69, 31, 0, MAPICON_LOCAL); //10
	SetPlayerMapIcon(playerid, 31, -1366.39, 1490.73, 11.03, 31, 0, MAPICON_LOCAL); //11
	SetPlayerMapIcon(playerid, 14, -1208.65, 1834.60, 41.92, 14, 0, MAPICON_LOCAL); //12
	SetPlayerMapIcon(playerid, 14, -2151.46, -2465.33, 30.62, 14, 0, MAPICON_LOCAL); //13
	SetPlayerMapIcon(playerid, 31, 1255.13, -775.89, 92.03, 31, 0, MAPICON_LOCAL); //14
	SetPlayerMapIcon(playerid, 31, -2687.99, -3.88, 6.13, 31, 0, MAPICON_LOCAL); //15
	SetPlayerMapIcon(playerid, 31, -2713.58, 222.98, 4.32, 31, 0, MAPICON_LOCAL); //16
	SetPlayerMapIcon(playerid, 14, -2676.44, 262.76, 4.63, 14, 0, MAPICON_LOCAL); //17
	SetPlayerMapIcon(playerid, 31, -2134.25, -444.57, 35.33, 31, 0, MAPICON_LOCAL); //18
	SetPlayerMapIcon(playerid, 31, -2018.20, 85.30, 27.79, 31, 0, MAPICON_LOCAL); //19
	SetPlayerMapIcon(playerid, 9, -1740.22, 29.13, 3.55, 9, 0, MAPICON_LOCAL); //20
	SetPlayerMapIcon(playerid, 23, 135.24, 1945.11, 19.34, 23, 0, MAPICON_LOCAL); //21
	SetPlayerMapIcon(playerid, 5, 414.61, 2531.22, 19.17, 5, 0, MAPICON_LOCAL); //22
	SetPlayerMapIcon(playerid, 31, 383.29, -2028.88, 7.83, 31, 0, MAPICON_LOCAL); //23
	SetPlayerMapIcon(playerid, 31, 364.16, -2048.66, 7.83, 31, 0, MAPICON_LOCAL); //24
	SetPlayerMapIcon(playerid, 31, 360.49, -2032.49, 7.83, 31, 0, MAPICON_LOCAL); //25
	SetPlayerMapIcon(playerid, 31, 370.66, -1668.40, 32.72, 31, 0, MAPICON_LOCAL); //26
	SetPlayerMapIcon(playerid, 31, 480.47, -1535.49, 19.56, 31, 0, MAPICON_LOCAL); //27
	SetPlayerMapIcon(playerid, 31, 498.23, -1571.73, 16.82, 31, 0, MAPICON_LOCAL); //28
	SetPlayerMapIcon(playerid, 31, 47.84, -1504.89, 14.53, 31, 0, MAPICON_LOCAL); //29
	SetPlayerMapIcon(playerid, 31, 507.79, -1409.97, 16.15, 31, 0, MAPICON_LOCAL); //30
	SetPlayerMapIcon(playerid, 31, 492.46, -1414.89, 16.43, 31, 0, MAPICON_LOCAL); //31
	SetPlayerMapIcon(playerid, 31, 483.91, -1419.34, 16.92, 31, 0, MAPICON_LOCAL); //32
	SetPlayerMapIcon(playerid, 31, 550.47, -1425.82, 16.12, 31, 0, MAPICON_LOCAL); //33
	SetPlayerMapIcon(playerid, 31, 643.57, -1357.27, 13.57, 31, 0, MAPICON_LOCAL); //34
	SetPlayerMapIcon(playerid, 31, 1895.57, -1355.56, 13.49, 31, 0, MAPICON_LOCAL); //35
	SetPlayerMapIcon(playerid, 31, 2128.19, -1139.12, 25.34, 31, 0, MAPICON_LOCAL); //36
	SetPlayerMapIcon(playerid, 39, 2072.48, -1779.98, 13.55, 39, 0, MAPICON_LOCAL); //37
	SetPlayerMapIcon(playerid, 31, 2073.33, -1794.34, 13.54, 31, 0, MAPICON_LOCAL); //38
	SetPlayerMapIcon(playerid, 31, 1405.46, 1902.08, 11.46, 31, 0, MAPICON_LOCAL); //39
	SetPlayerMapIcon(playerid, 31, 1654.58, 1731.05, 10.82, 31, 0, MAPICON_LOCAL); //40
	SetPlayerMapIcon(playerid, 5, 1713.02, 1605.76, 10.01, 5, 0, MAPICON_LOCAL); //41
	SetPlayerMapIcon(playerid, 31, 2027.75, 1007.54, 10.82, 31, 0, MAPICON_LOCAL); //42
	SetPlayerMapIcon(playerid, 31, 2087.32, 1447.79, 10.82, 31, 0, MAPICON_LOCAL); //43
	SetPlayerMapIcon(playerid, 31, 2019.75, 1543.69, 10.82, 31, 0, MAPICON_LOCAL); //44
	SetPlayerMapIcon(playerid, 25, 2193.07, 1677.41, 12.36, 25, 0, MAPICON_LOCAL); //45
	SetPlayerMapIcon(playerid, 31, 2363.46, 2070.67, 10.82, 31, 0, MAPICON_LOCAL); //46
	SetPlayerMapIcon(playerid, 31, 2370.72, 2164.98, 10.82, 31, 0, MAPICON_LOCAL); //47
	SetPlayerMapIcon(playerid, 31, 2628.40, 2320.60, 10.67, 31, 0, MAPICON_LOCAL); //48
also not i do not get ANY errors when compiling.
plus i figured id ask two questions, so that way i dont have to make seperate threads.
but yeah if you guys have any ideas why this isnt working? maybe some halp?!
would be greatly appriciated. :3
Reply
#2

MAP_ICON_LOCAL makes the map icons only stream in when they are visible on the player's radar if that is what you mean. Change MAP_ICON_LOCAL to MAP_ICON_GLOBAL for the map icons to be seen regardless of the player's position.
Reply
#3

I suggest you read the wiki.

The second param is the "The player's icon ID". Not the map icon ID.
Reply
#4

As for infinite NOS, it's not possible.
Reply
#5

pawn Код:
SetPlayerMapIcon(playerid, 1, 1794.94, -1287.32, 13.59, 31, 0, MAPICON_LOCAL); //1
    SetPlayerMapIcon(playerid, 2, -1545.62, -430.32, 5.99, 5, 0, MAPICON_LOCAL); //2
    SetPlayerMapIcon(playerid, 3, -2319.55, -182.01, 35.30, 10, 0, MAPICON_LOCAL); //3
    SetPlayerMapIcon(playerid, 4, -2246.09, -87.86, 35.32, 31, 0, MAPICON_LOCAL); //4
    SetPlayerMapIcon(playerid, 5, -1980.46, 137.66, 27.68, 31, 0, MAPICON_LOCAL); //5
    SetPlayerMapIcon(playerid, 6, -1928.97, 268.96, 41.04, 55, 0, MAPICON_LOCAL); //6
    SetPlayerMapIcon(playerid, 7, -1952.25, 717.31, 46.56, 31, 0, MAPICON_LOCAL); //7
    SetPlayerMapIcon(playerid, 8, -2417.31, 969.29, 45.29, 31, 0, MAPICON_LOCAL); //8
    SetPlayerMapIcon(playerid, 9, -2357.11, 994.86, 50.89, 10, 0, MAPICON_LOCAL); //9
    SetPlayerMapIcon(playerid, 10, -1940.01, 2380.26, 49.69, 31, 0, MAPICON_LOCAL); //10
    SetPlayerMapIcon(playerid, 11, -1366.39, 1490.73, 11.03, 31, 0, MAPICON_LOCAL); //11
    SetPlayerMapIcon(playerid, 12, -1208.65, 1834.60, 41.92, 14, 0, MAPICON_LOCAL); //12
    SetPlayerMapIcon(playerid, 13, -2151.46, -2465.33, 30.62, 14, 0, MAPICON_LOCAL); //13
    SetPlayerMapIcon(playerid, 14, 1255.13, -775.89, 92.03, 31, 0, MAPICON_LOCAL); //14
    SetPlayerMapIcon(playerid, 15, -2687.99, -3.88, 6.13, 31, 0, MAPICON_LOCAL); //15
    SetPlayerMapIcon(playerid, 16, -2713.58, 222.98, 4.32, 31, 0, MAPICON_LOCAL); //16
    SetPlayerMapIcon(playerid, 17, -2676.44, 262.76, 4.63, 14, 0, MAPICON_LOCAL); //17
    SetPlayerMapIcon(playerid, 18, -2134.25, -444.57, 35.33, 31, 0, MAPICON_LOCAL); //18
    SetPlayerMapIcon(playerid, 19, -2018.20, 85.30, 27.79, 31, 0, MAPICON_LOCAL); //19
    SetPlayerMapIcon(playerid, 20, -1740.22, 29.13, 3.55, 9, 0, MAPICON_LOCAL); //20
    SetPlayerMapIcon(playerid, 21, 135.24, 1945.11, 19.34, 23, 0, MAPICON_LOCAL); //21
    SetPlayerMapIcon(playerid, 22, 414.61, 2531.22, 19.17, 5, 0, MAPICON_LOCAL); //22
    SetPlayerMapIcon(playerid, 23, 383.29, -2028.88, 7.83, 31, 0, MAPICON_LOCAL); //23
    SetPlayerMapIcon(playerid, 24, 364.16, -2048.66, 7.83, 31, 0, MAPICON_LOCAL); //24
    SetPlayerMapIcon(playerid, 25, 360.49, -2032.49, 7.83, 31, 0, MAPICON_LOCAL); //25
    SetPlayerMapIcon(playerid, 26, 370.66, -1668.40, 32.72, 31, 0, MAPICON_LOCAL); //26
    SetPlayerMapIcon(playerid, 27, 480.47, -1535.49, 19.56, 31, 0, MAPICON_LOCAL); //27
    SetPlayerMapIcon(playerid, 28, 498.23, -1571.73, 16.82, 31, 0, MAPICON_LOCAL); //28
    SetPlayerMapIcon(playerid, 29, 47.84, -1504.89, 14.53, 31, 0, MAPICON_LOCAL); //29
    SetPlayerMapIcon(playerid, 30, 507.79, -1409.97, 16.15, 31, 0, MAPICON_LOCAL); //30
    SetPlayerMapIcon(playerid, 31, 492.46, -1414.89, 16.43, 31, 0, MAPICON_LOCAL); //31
    SetPlayerMapIcon(playerid, 32, 483.91, -1419.34, 16.92, 31, 0, MAPICON_LOCAL); //32
    SetPlayerMapIcon(playerid, 34, 550.47, -1425.82, 16.12, 31, 0, MAPICON_LOCAL); //33
    SetPlayerMapIcon(playerid, 35, 643.57, -1357.27, 13.57, 31, 0, MAPICON_LOCAL); //34
    SetPlayerMapIcon(playerid, 36, 1895.57, -1355.56, 13.49, 31, 0, MAPICON_LOCAL); //35
    SetPlayerMapIcon(playerid, 36, 2128.19, -1139.12, 25.34, 31, 0, MAPICON_LOCAL); //36
    SetPlayerMapIcon(playerid, 37, 2072.48, -1779.98, 13.55, 39, 0, MAPICON_LOCAL); //37
    SetPlayerMapIcon(playerid, 38, 2073.33, -1794.34, 13.54, 31, 0, MAPICON_LOCAL); //38
    SetPlayerMapIcon(playerid, 39, 1405.46, 1902.08, 11.46, 31, 0, MAPICON_LOCAL); //39
    SetPlayerMapIcon(playerid, 40, 1654.58, 1731.05, 10.82, 31, 0, MAPICON_LOCAL); //40
    SetPlayerMapIcon(playerid, 41, 1713.02, 1605.76, 10.01, 5, 0, MAPICON_LOCAL); //41
    SetPlayerMapIcon(playerid, 42, 2027.75, 1007.54, 10.82, 31, 0, MAPICON_LOCAL); //42
    SetPlayerMapIcon(playerid, 43, 2087.32, 1447.79, 10.82, 31, 0, MAPICON_LOCAL); //43
    SetPlayerMapIcon(playerid, 44, 2019.75, 1543.69, 10.82, 31, 0, MAPICON_LOCAL); //44
    SetPlayerMapIcon(playerid, 45, 2193.07, 1677.41, 12.36, 25, 0, MAPICON_LOCAL); //45
    SetPlayerMapIcon(playerid, 46, 2363.46, 2070.67, 10.82, 31, 0, MAPICON_LOCAL); //46
    SetPlayerMapIcon(playerid, 47, 2370.72, 2164.98, 10.82, 31, 0, MAPICON_LOCAL); //47
    SetPlayerMapIcon(playerid, 48, 2628.40, 2320.60, 10.67, 31, 0, MAPICON_LOCAL); //48
Reply
#6

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
MAP_ICON_LOCAL makes the map icons only stream in when they are visible on the player's radar if that is what you mean. Change MAP_ICON_LOCAL to MAP_ICON_GLOBAL for the map icons to be seen regardless of the player's position.
no i dont want them to be global.

Quote:
Originally Posted by Psymetrix
Посмотреть сообщение
I suggest you read the wiki.

The second param is the "The player's icon ID". Not the map icon ID.
i have read the wiki.

Quote:
Originally Posted by MP2
Посмотреть сообщение
As for infinite NOS, it's not possible.
and infinite nitro is possible like every other server does it nowa days. basically i think they have the nitro reset every 5 seconds? i might be wrong

but anywho thanks for the help guys!!!! D
Reply
#7

with this script, players will still need to press the NOS key, whenever they need to "update" it...
pawn Код:
forward OnPlayerKeyStateChange(playerid, newkeys, oldkeys);                                                             public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
    //...your code...
    if((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
    {
        new vehicle=GetPlayerVehicleID(playerid);
        if (vehicle>0)
        {
            AddVehicleComponent(vehicle,1010);
            return 1;
        }
    }
    //...your code...
    return 1;
}
Reply
#8

Quote:
Originally Posted by Babul
Посмотреть сообщение
with this script, players will still need to press the NOS key, whenever they need to "update" it...
pawn Код:
forward OnPlayerKeyStateChange(playerid, newkeys, oldkeys);                                                             public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
    //...your code...
    if((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
    {
        new vehicle=GetPlayerVehicleID(playerid);
        if (vehicle>0)
        {
            AddVehicleComponent(vehicle,1010);
            return 1;
        }
    }
    //...your code...
    return 1;
}
thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)