Dynamic cp visible to NPCs only
#4

guys.
it's not working
the cp is showing for all i'll show you it now
tell me what's the problem
i want it to show only for NPCs i don't care if it's for alll npcs but players musn't see it
and if they was in the bus of the npc and the npc has entered the cp the player(passenger) must pay

see my code:

pawn Код:
new BusCP;
new BusDriver;
OnGameModeInit:
pawn Код:
ConnectNPC("Mark","Bus");
    BusDriver = CreateVehicle(437, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
pawn Код:
BusCP = CreateDynamicCP(1532.7231,-1665.6580,13.5162, 1.2, -1, -1, -1, 100.0);
pawn Код:
if(checkpointid == BusCP)
    {
        new i;
        for(i=0;i<MAX_PLAYERS;i++)if(IsPlayerConnected(i) && !IsPlayerNPC(i))
        {
            if(IsPlayerInVehicle(i,BusDriver))
            {
                GivePlayerMoneyEx(i,-25);
            }
        }
    }
Reply


Messages In This Thread
Dynamic cp visible to NPCs only - by GoldZoroGrab - 11.05.2013, 18:21
Re: Dynamic cp visible to NPCs only - by RedCrossER - 11.05.2013, 18:47
Re: Dynamic cp visible to NPCs only - by GoldZoroGrab - 11.05.2013, 18:53
Re: Dynamic cp visible to NPCs only - by GoldZoroGrab - 11.05.2013, 20:12
Re: Dynamic cp visible to NPCs only - by MP2 - 11.05.2013, 20:47
Re: Dynamic cp visible to NPCs only - by GoldZoroGrab - 11.05.2013, 20:49
Re: Dynamic cp visible to NPCs only - by MP2 - 11.05.2013, 20:50

Forum Jump:


Users browsing this thread: 1 Guest(s)