07.06.2015, 10:37
I'm trying to make pickups visible only for the players in kart....
the problem is that , the pickups don't appear?..
the problem is that , the pickups don't appear?..
pawn Код:
function PrepareKarting(playerid)
{
TogglePlayerControllableEx(playerid, 1);
GameTextForPlayer(playerid, "~R~GO KARTERS!", 3000, 5);
SetPlayerRaceCheckpoint(playerid, 0, 1031.5936,-1400.3733,12.4892, 786.8919,-1400.3987,12.6523, 8.0);
kartcheckpoint[playerid] = 1;
KartNos[0] = CreateDynamicPickup(23, 1239, 712.6832,-1394.9241,12.6588, -1, -1, playerid, 100.0); //NOS
KartNos[1] = CreateDynamicPickup(23, 1239, 339.0295,-1559.8440,32.3260, -1, -1, playerid, 100.0); //NOS
KartNos[2] = CreateDynamicPickup(23, 1239, 368.8343,-1692.4629,29.1111, -1, -1, playerid, 100.0); //NOS
KartNos[3] = CreateDynamicPickup(23, 1239, 369.2652,-1767.1630,11.2448, -1, -1, playerid, 100.0); //NOS
KartNos[4] = CreateDynamicPickup(23, 1239, 565.9258,-1739.4386,12.0487, -1, -1, playerid, 100.0); //NOS
KartNos[5] = CreateDynamicPickup(23, 1239, 824.4368,-1782.0896,12.9278, -1, -1, playerid, 100.0); //NOS
KartNos[6] = CreateDynamicPickup(23, 1239, 1181.7384,-1849.7662,12.6822, -1, -1, playerid, 100.0); //NOS
KartNos[7] = CreateDynamicPickup(23, 1239, 1314.2120,-1760.0085,12.6666, -1, -1, playerid, 100.0); //NOS
KartNos[8] = CreateDynamicPickup(23, 1239, 1348.6340,-1581.5186,12.6601, -1, -1, playerid, 100.0); //NOS
KartNos[9] = CreateDynamicPickup(23, 1239, 1641.4761,-1595.5151,12.7180, -1, -1, playerid, 100.0); //NOS
KartNos[10] = CreateDynamicPickup(23, 1239, 1834.6222,-1540.7262,12.6620, -1, -1, playerid, 100.0); //NOS
KartNos[11] = CreateDynamicPickup(23, 1239, 1368.9119,-1399.5262,12.6743, -1, -1, playerid, 100.0); //NOS
//Kart BOOST
KartBoost[0] = CreateDynamicPickup(23, 1239,571.0145,-1406.2469,13.7107, -1, -1, playerid, 100.0); //BOST
KartBoost[1] = CreateDynamicPickup(23, 1239,378.5659,-1496.5291,31.5478, -1, -1, playerid, 100.0); //BOST
KartBoost[2] = CreateDynamicPickup(23, 1239,373.7769,-1713.0376,23.7893, -1, -1, playerid, 100.0); //BOST
KartBoost[3] = CreateDynamicPickup(23, 1239,613.7497,-1739.4063,12.7318, -1, -1, playerid, 100.0); //BOST
KartBoost[4] = CreateDynamicPickup(23, 1239,939.7665,-1794.4469,13.0425, -1, -1, playerid, 100.0); //BOST
KartBoost[5] = CreateDynamicPickup(23, 1239,1126.3622,-1853.8083,12.6666, -1, -1, playerid, 100.0); //BOST
KartBoost[6] = CreateDynamicPickup(23, 1239,1308.8599,-1704.4191,12.6666, -1, -1, playerid, 100.0); //BOST
KartBoost[7] = CreateDynamicPickup(23, 1239,1391.4958,-1585.9369,12.6408, -1, -1, playerid, 100.0); //BOST
KartBoost[8] = CreateDynamicPickup(23, 1239,1698.0342,-1589.6368,12.6584, -1, -1, playerid, 100.0); //BOST
KartBoost[9] = CreateDynamicPickup(23, 1239,1758.1587,-1447.4344,12.6393, -1, -1, playerid, 100.0); //BOST
KartBoost[10] = CreateDynamicPickup(23, 1239,1339.8452,-1398.3754,12.6087, -1, -1, playerid, 100.0); //BOST
}