11.05.2013, 20:12
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:
OnGameModeInit:
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;
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);
}
}
}