Taxi Missions - Problem
#1

Hi,

On this gamemode, people can go taxi drivers, when someone gets in, its suppose to say "you have one new passenger" for the player driving, but it says it for the actual passenger :P

here is the code:

if (newstate==PLAYER_STATE_PASSENGER)
{
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 431 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 437)
{
new i=0;
while (i<MAX_PLAYERS)
{
if ((playerInMiniMission[i]==1)&&(GetPlayerState(i)==PLAYER_STATE_DRIVER))
{
if (GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
{
new bdname[MAX_PLAYER_NAME];
GetPlayerName(i,bdname,MAX_PLAYER_NAME);
contador[i]++;
format(bdmsg,sizeof(bdmsg),"~w~You have gotten into ~n~~g~%s's ~r~Bus~w~",bdname);
GameTextForPlayer(playerid,bdmsg,3000,4);
format(bdmsg,sizeof(bdmsg),"~w~You have one new~n~~r~PASENGER~w~");
GameTextForPlayer(playerid,bdmsg,3000,4);
OnBusAsPassenger[playerid]=i;
CostoDelViaje[playerid]=BAJADA_DE_BANDERA;
if (cantidadPasajeros==0)
{
caidadefichaTimer=SetTimer("caidadeficha",30000,1) ;
}
cantidadPasajeros++;
i=MAX_PLAYERS;
}
}
i++;
}
}
Reply


Messages In This Thread
Taxi Missions - Problem - by 15outland - 07.04.2013, 15:20
Re: Taxi Missions - Problem - by Artie - 07.04.2013, 15:50
Re: Taxi Missions - Problem - by 15outland - 08.04.2013, 03:18
Re: Taxi Missions - Problem - by 15outland - 09.04.2013, 03:24

Forum Jump:


Users browsing this thread: 1 Guest(s)