Help me
#1

Why this not work ??! nothing from him work check!

pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(gTeam[playerid] != TEAM_DRIVER && GetVehicleModel(vehicleid) == 420 || GetVehicleModel(vehicleid) == 438 || GetVehicleModel(vehicleid) == 431)
    {
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerInVehicle(i,vehicleid))
    {
    if(gTeam[i] == TEAM_DRIVER && GetPlayerState(i) == PLAYER_STATE_DRIVER && Driveronduty[i] == 1)
    {
    SendClientMessage(playerid, 0xA9A9A9AA, "|_Driver On Duty_|");
    SendClientMessage(playerid,COLOR_DARKOLIVEGREEN,"This driver is on duty. You will be charged $10 / 1 game minute");
    SendClientMessage(i, 0xA9A9A9AA, "|_Passenger Pick Up_|");
    SendClientMessage(i,COLOR_DARKOLIVEGREEN,"You have picked up a paying passenger. You receive a Ј2500 bonus");
    oscore = GetPlayerScore(playerid);
    SetPlayerScore(playerid, oscore +1);
    SafeGivePlayerMoney(i,2500);
    Taxipass[playerid] =1;
    }
}
   
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER){
    {
    if(gTeam[playerid] != TEAM_PILOT && GetPlayerVehicleID(playerid) == 519  || GetPlayerVehicleID(playerid) == 487)
    {
    for(new p=0;p<MAX_PLAYERS;p++){
    if(IsPlayerInVehicle(p,vehicleid)){
    if(gTeam[p] == TEAM_PILOT && GetPlayerState(p) == PLAYER_STATE_DRIVER && Pilotonduty[p] == 1){
    SendClientMessage(playerid, 0xA9A9A9AA, "|_Pilot On Duty_|");
    SendClientMessage(playerid,COLOR_DARKOLIVEGREEN,"This pilot is on duty. You will be charged $20 / 1 game minute");
    SendClientMessage(p, 0xA9A9A9AA, "|_Passenger Pick Up_|");
    SendClientMessage(p,COLOR_DARKOLIVEGREEN,"You have picked up a paying passenger. You receive a $5500 bonus");
    oscore = GetPlayerScore(playerid);
    SetPlayerScore(playerid, oscore +1);
    GivePlayerMoney(p,5500);
    Planepass[playerid] =1;
    }
    }
    }
    }
    }
    }
    }
    }
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)