11.12.2013, 14:43
Hello,
I'm creating a mission and I want to make so that the vehicle will be seen for all players on minimap as objective.
I'm using the SetVehicleParams and set the objective to 1. As I want, you can see the vehicle as objective on the minimap and a yellow arrow is attached to the vehicle, however, players who are far are not able to see that objective on their minimap.
I am a bit of confused here, any idea?
I have had a look to rivashell gamemode which is inside the samp server package.
Is this the actual method to make the yellow marked visible for everyone on the minimap?
I'm creating a mission and I want to make so that the vehicle will be seen for all players on minimap as objective.
I'm using the SetVehicleParams and set the objective to 1. As I want, you can see the vehicle as objective on the minimap and a yellow arrow is attached to the vehicle, however, players who are far are not able to see that objective on their minimap.
I am a bit of confused here, any idea?
I have had a look to rivashell gamemode which is inside the samp server package.
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
// Note for SA-MP 0.3:
// As the vehicle streams in, player team dependant params are applied. They can't be
// applied to vehicles that don't exist in the player's world.
if(vehicleid == OBJECTIVE_VEHICLE_BLUE) {
if(gTeam[forplayerid] == TEAM_GREEN) {
SetVehicleParamsForPlayer(OBJECTIVE_VEHICLE_BLUE,forplayerid,1,1); // objective; locked
}
else if(gTeam[forplayerid] == TEAM_BLUE) {
SetVehicleParamsForPlayer(OBJECTIVE_VEHICLE_BLUE,forplayerid,1,0); // objective; unlocked
}
}
else if(vehicleid == OBJECTIVE_VEHICLE_GREEN) {
if(gTeam[forplayerid] == TEAM_BLUE) {
SetVehicleParamsForPlayer(OBJECTIVE_VEHICLE_GREEN,forplayerid,1,1); // objective; locked
}
else if(gTeam[forplayerid] == TEAM_GREEN) {
SetVehicleParamsForPlayer(OBJECTIVE_VEHICLE_GREEN,forplayerid,1,0); // objective; unlocked
}
}
return 1;
//printf("GameMode: VehicleStreamIn(%d,%d)",vehicleid,forplayerid);
}