[AJUDA]Rapidi ( To com duvida nesse negocio de chaves)
#9

mlz eu fis uma cagadinha ali no if de membro qnd postei esse eu compilei e deu se nao funfa vc tah com poka sorte
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(gTeam[playerid] >= 3)
    {
        if (IsACopCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLider]==1||PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pMembro]==17||PlayerInfo[playerid][pLider]==17) {}
            else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Roubo de Viatura"); }
        }
        if (IsAnAmbulanceCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pMembro]==4||PlayerInfo[playerid][pLider]==4) { }
            else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Roubo de Ambulancia"); }
        }
        new string[256];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s Entra no veiculo.", sendername);
        DetectorProx(5.0,playerid,string,ROXO);
    }
    CintoPlayer[playerid] = 0;
    GameTextForPlayer(playerid, "~r~/cinto Caso Contrario ~n~Morrer em Batidas", 3000, 4);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)